Add gettext strings to model data-message fields, error handling

This commit is contained in:
billz
2023-04-04 22:30:03 +02:00
parent 2499c7a712
commit 13a113f717
3 changed files with 19 additions and 15 deletions

View File

@@ -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();