summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-27 13:05:02 +0300
committerAndrew Dolgov <[email protected]>2021-02-27 13:05:02 +0300
commitdfff2cef7b29e2275bd1cf9ac59d3e50f09b7bc5 (patch)
tree967719142c2e105e765039fc79661f4fc1efe898 /backend.php
parent5edcbf2e9bfa79ea87a6e420a4c17e8b02997716 (diff)
add basic updater for stuff in plugins.local
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/backend.php b/backend.php
index 206d866b7..e310322f2 100644
--- a/backend.php
+++ b/backend.php
@@ -135,6 +135,9 @@
} else {
if (method_exists($handler, "catchall")) {
$handler->catchall($method);
+ } else {
+ header("Content-Type: text/json");
+ print Errors::to_json(Errors::E_UNKNOWN_METHOD, ["info" => get_class($handler) . "->$method"]);
}
}
$handler->after();
@@ -154,6 +157,6 @@
}
header("Content-Type: text/json");
- print Errors::to_json(Errors::E_UNKNOWN_METHOD);
+ print Errors::to_json(Errors::E_UNKNOWN_METHOD, ["info" => get_class($handler) . "->$method"]);
?>