1
0
Fork 0

fix paginate url

pagination url wasn't alway stripping 'page' parameter from url
related to issue #1341
This commit is contained in:
fabrixxm 2015-03-22 16:38:05 +01:00
parent e016db8bc6
commit add3411542

View file

@ -270,7 +270,7 @@ if(! function_exists('paginate_data')) {
* @return Array data for pagination template
*/
function paginate_data(&$a, $count=null) {
$stripped = preg_replace('/(&page=[0-9]*)/','',$a->query_string);
$stripped = preg_replace('/([&?]page=[0-9]*)/','',$a->query_string);
$stripped = str_replace('q=','',$stripped);
$stripped = trim($stripped,'/');