diff options
author | Andrew Dolgov <[email protected]> | 2011-12-13 15:40:42 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-12-13 15:40:42 +0400 |
commit | de8260cb10da0ac4e49e4b3fc3a42c3578eff007 (patch) | |
tree | 2090420fd6e795ffed07efc8d5420ba9e5399be8 /public.php | |
parent | d043c0069ed6e7e33e5ee019eca725fa4029ef1e (diff) |
move API to classes/
Diffstat (limited to 'public.php')
-rw-r--r-- | public.php | 16 |
1 files changed, 7 insertions, 9 deletions
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"); |