Change common_local_url() to take 4 arguments
I changed common_local_url() to take an additional optional argument -- for query parameters. Being persnickety, I made it the third of four, and moved the last one ($fragment) down a slot. That required changing a couple of calls.
This commit is contained in:
@@ -350,7 +350,7 @@ class Router
|
||||
return $this->m->match($path);
|
||||
}
|
||||
|
||||
function build($action, $args=null, $fragment=null)
|
||||
function build($action, $args=null, $params=null, $fragment=null)
|
||||
{
|
||||
$action_arg = array('action' => $action);
|
||||
|
||||
@@ -360,6 +360,6 @@ class Router
|
||||
$args = $action_arg;
|
||||
}
|
||||
|
||||
return $this->m->generate($args, null, $fragment);
|
||||
return $this->m->generate($args, $params, $fragment);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user