X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=public.php;fp=public.php;h=4cf7653f99a376223e099bb4cab4a6a1f4203cf7;hb=8dcb2b47628346226b18940b5cde7849f7a24687;hp=59e0ef2e3696082acbc9cb9ab2f017a60817747d;hpb=5cedb389d24861a94c1183d1562900dbe59ee3fb;p=tt-rss.git diff --git a/public.php b/public.php index 59e0ef2e..4cf7653f 100644 --- a/public.php +++ b/public.php @@ -40,9 +40,16 @@ $method = $_REQUEST["op"]; - $handler = new Handler_Public($link, $_REQUEST); + global $pluginhost; + $override = $pluginhost->lookup_handler("public", $method); - if ($handler->before($method)) { + if ($override) { + $handler = $override; + } else { + $handler = new Handler_Public($link, $_REQUEST); + } + + if (implements_interface($handler, "IHandler") && $handler->before($method)) { if ($method && method_exists($handler, $method)) { $handler->$method(); } else if (method_exists($handler, 'index')) {