]> git.wh0rd.org Git - tt-rss.git/blob - classes/pluginhandler.php
prefs: expand feed tree if displaying search results
[tt-rss.git] / classes / pluginhandler.php
1 <?php
2 class PluginHandler extends Handler_Protected {
3         function csrf_ignore($method) {
4                 return true;
5         }
6
7         function catchall($method) {
8                 $plugin = PluginHost::getInstance()->get_plugin(clean($_REQUEST["plugin"]));
9
10                 if ($plugin) {
11                         if (method_exists($plugin, $method)) {
12                                 $plugin->$method();
13                         } else {
14                                 print error_json(13);
15                         }
16                 } else {
17                         print error_json(14);
18                 }
19         }
20 }