Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Small fixes for error handlers in Zepto\Router
Browse files Browse the repository at this point in the history
  • Loading branch information
hassankhan committed Jan 31, 2014
1 parent 904ac54 commit 26e15d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Zepto/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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')));
Expand Down

0 comments on commit 26e15d2

Please sign in to comment.