summaryrefslogtreecommitdiff
path: root/classes/pluginhandler.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-08-16 12:53:51 +0300
committerAndrew Dolgov <[email protected]>2019-08-16 12:53:51 +0300
commit88077702f3a517a0c5b3dbf52acc3f2f51bc6c62 (patch)
tree17da7c296a12ce21368ce260afdf9b7eb2a566c2 /classes/pluginhandler.php
parent24f55d5b919d4b39664b245e51c1d7b984a9966c (diff)
parenta2d26867e653d34a80e504478ebe30ff69ef4a33 (diff)
Merge branch 'master' of git.fakecake.org:tt-rss
Diffstat (limited to 'classes/pluginhandler.php')
-rw-r--r--classes/pluginhandler.php5
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);
}
}