forked from GNUsocial/gnu-social
don't forget to add qstring to static paths
This commit is contained in:
parent
f6f147c0db
commit
601573a8a9
@ -147,7 +147,7 @@ class URLMapper
|
||||
}
|
||||
}
|
||||
// success
|
||||
return $tryPath;
|
||||
$path = $tryPath;
|
||||
} else {
|
||||
list($tryArgs, $format, $paramNames) = $candidate;
|
||||
|
||||
@ -171,14 +171,17 @@ class URLMapper
|
||||
}
|
||||
|
||||
$path = vsprintf($format, $toFormat);
|
||||
}
|
||||
|
||||
if (!empty($qstring)) {
|
||||
$path .= '?' . http_build_query($qstring);
|
||||
$formatted = http_build_query($qstring);
|
||||
$path .= '?' . $formatted;
|
||||
}
|
||||
|
||||
return $path;
|
||||
}
|
||||
}
|
||||
|
||||
// failure; some reporting twiddles
|
||||
|
||||
unset($args['action']);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user