From a2d26867e653d34a80e504478ebe30ff69ef4a33 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 16 Aug 2019 09:38:24 +0300 Subject: pluginhandler/public: report errors with E_USER_WARNING --- classes/handler/public.php | 6 +++--- 1 file 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); } -- cgit v1.2.3