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

Commit

Permalink
Fixed a problem with Zepto\Router::run() where callback functions…
Browse files Browse the repository at this point in the history
… were being passed an array instead of parameters
  • Loading branch information
hassankhan committed Jan 31, 2014
1 parent faf05d6 commit 106e951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zepto/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public function run()
$this->current_http_status = \Symfony\Component\HttpFoundation\Response::HTTP_OK;

// Set response content
$this->response->setContent(call_user_func_array($route->callback(), array($params)));
$this->response->setContent(call_user_func_array($route->callback(), $params));

// Send response
$this->response->send();
Expand Down

0 comments on commit 106e951

Please sign in to comment.