Commit df7673a3 authored by Melissa Draper's avatar Melissa Draper
Browse files

Additional fix for tags query joining error (bug #849898)

The fix in commit 884ccae4

 was
incomplete. It didn't pick up when there was an existing ? in the
baseurl. This patch adds that check.

Change-Id: I9666ae146ecf7ba8d8654e2cf97806f91f468d03
Signed-off-by: default avatarMelissa Draper <melissa@catalyst.net.nz>
parent cdb749b0
......@@ -210,7 +210,7 @@ foreach (array('alpha', 'freq') as $option) {
$tagsortoptions[$option] = $option == $tagsort;
}
if (substr($data->baseurl, -8, 8) == "tags.php") {
if (strpos($data->baseurl, 'tags.php?') !== 0) {
$data->queryprefix = '?';
}
else {
......
Supports Markdown
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