X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=public.php;h=4cf7653f99a376223e099bb4cab4a6a1f4203cf7;hb=8dcb2b47628346226b18940b5cde7849f7a24687;hp=675a9e352d9a6a413b60045c661695e82a9c9095;hpb=6a79e8afeb2038fa20796846fd1e2b64113112c3;p=tt-rss.git diff --git a/public.php b/public.php index 675a9e35..4cf7653f 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')) {