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:
@@ -705,10 +705,10 @@ function common_relative_profile($sender, $nickname, $dt=null)
|
||||
return null;
|
||||
}
|
||||
|
||||
function common_local_url($action, $args=null, $fragment=null)
|
||||
function common_local_url($action, $args=null, $params=null, $fragment=null)
|
||||
{
|
||||
$r = Router::get();
|
||||
$path = $r->build($action, $args, $fragment);
|
||||
$path = $r->build($action, $args, $params, $fragment);
|
||||
if ($path) {
|
||||
}
|
||||
if (common_config('site','fancy')) {
|
||||
|
Reference in New Issue
Block a user