X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=public.php;h=ae6ae44b20b322a9f55a2c3dbfc3d8811c1cba48;hb=aca75cb5cb323535099c7aef46a78ea3cec082f2;hp=675a9e352d9a6a413b60045c661695e82a9c9095;hpb=6a79e8afeb2038fa20796846fd1e2b64113112c3;p=tt-rss.git diff --git a/public.php b/public.php index 675a9e35..ae6ae44b 100644 --- a/public.php +++ b/public.php @@ -1,6 +1,6 @@ lookup_handler("public", $method); + + if ($override) { + $handler = $override; + } else { + $handler = new Handler_Public($link, $_REQUEST); + } - if ($handler->before($method)) { + if (implements_interface($handler, "IHandler") && $handler->before($method)) { if ($method && method_exists($handler, $method)) { $handler->$method(); } else if (method_exists($handler, 'index')) {