Add check to make sure audit log location is writeable
Some cleanups
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user