mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 03:35:55 +00:00
drop errors.php and simplify error handling
This commit is contained in:
@@ -34,9 +34,11 @@
|
||||
if (!\Sessions\validate_session()) {
|
||||
header("Content-Type: text/json");
|
||||
|
||||
print json_encode(array("seq" => -1,
|
||||
"status" => 1,
|
||||
"content" => array("error" => "NOT_LOGGED_IN")));
|
||||
print json_encode([
|
||||
"seq" => -1,
|
||||
"status" => API::STATUS_ERR,
|
||||
"content" => [ "error" => API::E_NOT_LOGGED_IN ]
|
||||
]);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user