]> git.wh0rd.org - tt-rss.git/blobdiff - public.php
another implementation of pull 386 (show next when finished reading)
[tt-rss.git] / public.php
index 2f5081957a1abd75a219d090537231ad9cf953a6..33f5af75713df54fad835da2bed0c3085428a223 100644 (file)
 
        $method = $_REQUEST["op"];
 
-       global $pluginhost;
-       $override = $pluginhost->lookup_handler("public", $method);
+       $override = PluginHost::getInstance()->lookup_handler("public", $method);
 
        if ($override) {
                $handler = $override;
        } else {
-               $handler = new Handler_Public(Db::get(), $_REQUEST);
+               $handler = new Handler_Public($_REQUEST);
        }
 
        if (implements_interface($handler, "IHandler") && $handler->before($method)) {