diff --git a/library/Zepto/Router.php b/library/Zepto/Router.php index 570e8a9..172301b 100644 --- a/library/Zepto/Router.php +++ b/library/Zepto/Router.php @@ -319,7 +319,7 @@ public function error($arg = null) else { // Execute error handler and set result as response content if (is_callable($this->error_handler)) { - $this->response->setContent(call_user_func(array($this, 'error_handler'), $arg)); + $this->response->setContent(call_user_func($this->error_handler, $arg)); } else { $this->response->setContent(call_user_func(array($this, 'default_error_handler'), $arg)); @@ -351,7 +351,7 @@ public function not_found($callback = null) else { // Execute not found handler and set result as response content if (is_callable($this->not_found_handler)) { - $this->response->setContent(call_user_func(array($this, 'not_found_handler'))); + $this->response->setContent(call_user_func($this->not_found_handler)); } else { $this->response->setContent(call_user_func(array($this, 'default_not_found_handler')));