summaryrefslogtreecommitdiff
path: root/public.php
diff options
context:
space:
mode:
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");