summaryrefslogtreecommitdiff
path: root/public.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-12-13 15:40:42 +0400
committerAndrew Dolgov <[email protected]>2011-12-13 15:40:42 +0400
commitde8260cb10da0ac4e49e4b3fc3a42c3578eff007 (patch)
tree2090420fd6e795ffed07efc8d5420ba9e5399be8 /public.php
parentd043c0069ed6e7e33e5ee019eca725fa4029ef1e (diff)
move API to classes/
Diffstat (limited to 'public.php')
-rw-r--r--public.php16
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");