From dfff2cef7b29e2275bd1cf9ac59d3e50f09b7bc5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 27 Feb 2021 13:05:02 +0300 Subject: add basic updater for stuff in plugins.local --- backend.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'backend.php') 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"]); ?> -- cgit v1.2.3