From de8260cb10da0ac4e49e4b3fc3a42c3578eff007 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 13 Dec 2011 15:40:42 +0400 Subject: move API to classes/ --- public.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'public.php') diff --git a/public.php b/public.php index 2cec82962..598f78c78 100644 --- a/public.php +++ b/public.php @@ -48,16 +48,14 @@ $handler = new Public_Handler($link, $_REQUEST); - if ($handler) { - if ($handler->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"); -- cgit v1.2.3