Deal with default param patterns more effectively

This commit is contained in:
Evan Prodromou 2011-09-14 12:27:20 -04:00
parent 11f2a3d551
commit a4240db48f

View File

@ -59,7 +59,7 @@ class URLMapper
protected $variables = array();
protected $reverse = array();
function connect($path, $args, $paramPatterns=null)
function connect($path, $args, $paramPatterns=array())
{
if (!array_key_exists(self::ACTION, $args)) {
throw new Exception(sprintf("Can't connect %s; path has no action.", $path));