git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/branches/evo@134 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
pzinovkin
2010-03-25 11:03:08 +00:00
parent 359a49c412
commit 942d73caf7
4 changed files with 141 additions and 2 deletions

View File

@ -17,7 +17,7 @@ class Route
protected $params;
protected $layout;
public function __construct($route, $action, $params = null, $layout = null)
public function __construct($route, $action, $params = array(), $layout = null)
{
$this->route = $route;
$this->action = $action;

View File

@ -23,7 +23,7 @@ class Router
*/
protected $route;
public function add($name, $route, $action, $params = null, $layout = null)
public function add($name, $route, $action, $params = array(), $layout = null)
{
if (!$layout) {
$layout = $this->default_layout;