Add check to make sure audit log location is writeable

Some cleanups
This commit is contained in:
Andy Dixon
2024-10-09 21:06:37 +01:00
parent e5ff977ca4
commit 03161dbeaa
5 changed files with 43 additions and 27 deletions
+2 -2
View File
@@ -7,9 +7,9 @@ switch ($_REQUEST["action"]) {
header('Content-type: application/json');
if (!empty($_POST['uri']) && !empty($_POST['content'])) {
$_SESSION['core']->saveContent($_POST['uri'], $_POST['content']);
echo json_encode(array('message'=>'Page has been saved'));
echo json_encode(array('message' => 'Page has been saved'));
} else {
echo json_encode(array('error'=>'Unable to save page'));
echo json_encode(array('error' => 'Unable to save page'));
}
break;