X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=public.php;h=33f5af75713df54fad835da2bed0c3085428a223;hb=05a8caddf50f85cb459d161126d74861bf325b34;hp=2f5081957a1abd75a219d090537231ad9cf953a6;hpb=57bac1bea99cdac24305c53272a48821e52a7c2e;p=tt-rss.git diff --git a/public.php b/public.php index 2f508195..33f5af75 100644 --- a/public.php +++ b/public.php @@ -37,13 +37,12 @@ $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)) {