Code Cleanup

This commit is contained in:
Andy Dixon
2024-10-03 08:07:53 +01:00
committed by Andy Dixon
parent d161239cf1
commit a1f2d18cf0
9 changed files with 136 additions and 112 deletions
+2 -2
View File
@@ -4,11 +4,11 @@ require_once "../init.php";
switch ($_REQUEST["action"]) {
case "save":
if(!empty($_POST['uri']) && !empty($_POST['content'])) {
if (!empty($_POST['uri']) && !empty($_POST['content'])) {
$_SESSION['core']->saveContent($_POST['uri'], $_POST['content']);
die("Page Updated.");
} else {
die('Unable to save page');
}
break;
};
}