mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Add gettext strings to model data-message fields, error handling
This commit is contained in:
@@ -25,8 +25,9 @@ if (isset($_POST['csrf_token'])) {
|
||||
} catch (Exception $e) {
|
||||
$return = $e->getCode();
|
||||
}
|
||||
}
|
||||
echo json_encode($return);
|
||||
}
|
||||
$jsonData = ['return'=>$return];
|
||||
echo json_encode($jsonData);
|
||||
|
||||
} else {
|
||||
handleInvalidCSRFToken();
|
||||
|
Reference in New Issue
Block a user