X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=public.php;h=59e0ef2e3696082acbc9cb9ab2f017a60817747d;hb=88e8fb3a7132d1321ab65b66a19a67df890c402d;hp=2cec82962b786a6f75b544d3b0da52520f9e5fcb;hpb=d043c0069ed6e7e33e5ee019eca725fa4029ef1e;p=tt-rss.git diff --git a/public.php b/public.php index 2cec8296..59e0ef2e 100644 --- a/public.php +++ b/public.php @@ -1,5 +1,6 @@ before()) { - if ($method && method_exists($handler, $method)) { - $handler->$method(); - } else if (method_exists($handler, 'index')) { - $handler->index(); - } - $handler->after(); - return; + if ($handler->before($method)) { + if ($method && method_exists($handler, $method)) { + $handler->$method(); + } else if (method_exists($handler, 'index')) { + $handler->index(); } + $handler->after(); + return; } header("Content-Type: text/plain");