1
0
Fork 0

Remove Pager->ensureQueryParameter

This commit is contained in:
Hypolite Petovan 2019-01-11 19:29:55 -05:00
parent ec8b313c2d
commit eaea24f98b

View file

@ -123,21 +123,6 @@ class Pager
$this->baseQueryString = $stripped;
}
/**
* Ensures the provided URI has its query string punctuation in order.
*
* @param string $uri
* @return string
*/
private function ensureQueryParameter($uri)
{
if (strpos($uri, '?') === false && ($pos = strpos($uri, '&')) !== false) {
$uri = substr($uri, 0, $pos) . '?' . substr($uri, $pos + 1);
}
return $uri;
}
/**
* @brief Minimal pager (newer/older)
*