X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=public.php;h=33f5af75713df54fad835da2bed0c3085428a223;hb=22f675e5c4195285b6b5033b451efa9cbb30384b;hp=6ace943c411744af99d348a4e936673d80640f3a;hpb=eefaa2df381686f771396baae2d0ae71b345c2e7;p=tt-rss.git diff --git a/public.php b/public.php index 6ace943c..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( $_REQUEST); + $handler = new Handler_Public($_REQUEST); } if (implements_interface($handler, "IHandler") && $handler->before($method)) {