don't forget to add qstring to static paths

This commit is contained in:
Evan Prodromou 2011-09-14 16:13:54 -04:00
parent f6f147c0db
commit 601573a8a9

View File

@ -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']);