1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-08 07:39:14 +00:00

wip separate handlers

This commit is contained in:
Andrew Dolgov
2021-03-02 15:16:38 +03:00
parent d6629ed188
commit 9ad4cbeeca
10 changed files with 2005 additions and 1996 deletions

View File

@@ -36,8 +36,8 @@
print json_encode([
"seq" => -1,
"status" => API::STATUS_ERR,
"content" => [ "error" => API::E_NOT_LOGGED_IN ]
"status" => Handler_API::STATUS_ERR,
"content" => [ "error" => Handler_API::E_NOT_LOGGED_IN ]
]);
return;
@@ -48,7 +48,7 @@
$method = strtolower($_REQUEST["op"] ?? "");
$handler = new API($_REQUEST);
$handler = new Handler_API($_REQUEST);
if ($handler->before($method)) {
if ($method && method_exists($handler, $method)) {