X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=public.php;h=7aebde78f378c7f1012cf122f2a727b878b9eb1f;hb=e2b8c9273e09091c235959c25d8e4d8122aa6ca8;hp=2f5081957a1abd75a219d090537231ad9cf953a6;hpb=d632b28cef93a159739e674a3573f197cc705c74;p=tt-rss.git diff --git a/public.php b/public.php index 2f508195..7aebde78 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)) { @@ -57,6 +56,5 @@ } header("Content-Type: text/plain"); - print json_encode(array("error" => array("code" => 7))); - + print error_json(13); ?>