]> git.wh0rd.org - tt-rss.git/blobdiff - classes/pluginhandler.php
make pluginhost a singleton
[tt-rss.git] / classes / pluginhandler.php
index eb859ab323ce26d920b8af025070ce1be5947704..69030516523a2a88914c64a2d74aa2b68b006524 100644 (file)
@@ -5,9 +5,7 @@ class PluginHandler extends Handler_Protected {
        }
 
        function catchall($method) {
-               global $pluginhost;
-
-               $plugin = $pluginhost->get_plugin($_REQUEST["plugin"]);
+               $plugin = PluginHost::getInstance()->get_plugin($_REQUEST["plugin"]);
 
                if ($plugin) {
                        if (method_exists($plugin, $method)) {