Commit a4240db4 authored by Evan Prodromou's avatar Evan Prodromou

Deal with default param patterns more effectively

parent 11f2a3d5
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment