diff options
| author | Andrew Dolgov <noreply@fakecake.org> | 2019-08-16 12:53:51 +0300 |
|---|---|---|
| committer | Andrew Dolgov <noreply@fakecake.org> | 2019-08-16 12:53:51 +0300 |
| commit | 88077702f3a517a0c5b3dbf52acc3f2f51bc6c62 (patch) | |
| tree | 17da7c296a12ce21368ce260afdf9b7eb2a566c2 /classes/pluginhandler.php | |
| parent | 24f55d5b919d4b39664b245e51c1d7b984a9966c (diff) | |
| parent | a2d26867e653d34a80e504478ebe30ff69ef4a33 (diff) | |
Merge branch 'master' of git.fakecake.org:tt-rss
Diffstat (limited to 'classes/pluginhandler.php')
| -rw-r--r-- | classes/pluginhandler.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/pluginhandler.php b/classes/pluginhandler.php index d10343e09..9682e440f 100644 --- a/classes/pluginhandler.php +++ b/classes/pluginhandler.php @@ -5,15 +5,18 @@ class PluginHandler extends Handler_Protected { } function catchall($method) { - $plugin = PluginHost::getInstance()->get_plugin(clean($_REQUEST["plugin"])); + $plugin_name = clean($_REQUEST["plugin"]); + $plugin = PluginHost::getInstance()->get_plugin($plugin_name); if ($plugin) { if (method_exists($plugin, $method)) { $plugin->$method(); } else { + user_error("PluginHandler: Requested unknown method '$method' of plugin '$plugin_name'.", E_USER_WARNING); print error_json(13); } } else { + user_error("PluginHandler: Requested method '$method' of unknown plugin '$plugin_name'.", E_USER_WARNING); print error_json(14); } } |