X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=public.php;h=bf13fdd583040aa21f82c4226effe4458822b158;hb=51cc387347668e98b1b8e6c6053581a2affc5fa6;hp=2cec82962b786a6f75b544d3b0da52520f9e5fcb;hpb=5f0a3741d0a549849b503eca7b6d7b87d9903069;p=tt-rss.git diff --git a/public.php b/public.php index 2cec8296..bf13fdd5 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");