diff --git a/core.php b/core.php index a8e563c..486f4aa 100644 --- a/core.php +++ b/core.php @@ -538,7 +538,7 @@ switch($_GET["action"])

Click here to go back.")); } unset($pageindex->$page); //delete the page from the page index - file_put_contents("./pageindex.json", json_encode($pageindex)); //save the new page index + file_put_contents("./pageindex.json", json_encode($pageindex, JSON_PRETTY_PRINT)); //save the new page index unlink("./$page.md"); //delete the page from the disk exit(renderpage("Deleting $page - $sitename", "

$page has been deleted. Go back to the main page.

")); diff --git a/index.php b/index.php index 8419994..fabed4b 100755 --- a/index.php +++ b/index.php @@ -653,7 +653,7 @@ switch($_GET["action"])

Click here to go back.")); } unset($pageindex->$page); //delete the page from the page index - file_put_contents("./pageindex.json", json_encode($pageindex)); //save the new page index + file_put_contents("./pageindex.json", json_encode($pageindex, JSON_PRETTY_PRINT)); //save the new page index unlink("./$page.md"); //delete the page from the disk exit(renderpage("Deleting $page - $sitename", "

$page has been deleted. Go back to the main page.

"));