summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-08-16 09:38:24 +0300
committerAndrew Dolgov <[email protected]>2019-08-16 09:38:24 +0300
commita2d26867e653d34a80e504478ebe30ff69ef4a33 (patch)
tree0a97f7b596b14ca593bffea804905f968f847d21
parentd94348421d8d791eec29afd2e01fb1c9ba181de1 (diff)
pluginhandler/public: report errors with E_USER_WARNING
-rwxr-xr-xclasses/handler/public.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php
index 92240fd10..91413b976 100755
--- a/classes/handler/public.php
+++ b/classes/handler/public.php
@@ -1216,17 +1216,17 @@ class Handler_Public extends Handler {
if ($plugin->is_public_method($method)) {
$plugin->$method();
} else {
- user_error("PluginHandler[PUBLIC]: Requested private method '$method' of plugin '$plugin_name'.");
+ user_error("PluginHandler[PUBLIC]: Requested private method '$method' of plugin '$plugin_name'.", E_USER_WARNING);
header("Content-Type: text/json");
print error_json(6);
}
} else {
- user_error("PluginHandler[PUBLIC]: Requested unknown method '$method' of plugin '$plugin_name'.");
+ user_error("PluginHandler[PUBLIC]: Requested unknown method '$method' of plugin '$plugin_name'.", E_USER_WARNING);
header("Content-Type: text/json");
print error_json(13);
}
} else {
- user_error("PluginHandler[PUBLIC]: Requested method '$method' of unknown plugin '$plugin_name'.");
+ user_error("PluginHandler[PUBLIC]: Requested method '$method' of unknown plugin '$plugin_name'.", E_USER_WARNING);
header("Content-Type: text/json");
print error_json(14);
}