Browse Source

fix paginate url

pagination url wasn't alway stripping 'page' parameter from url
related to issue #1341
pull/1444/head
fabrixxm 6 years ago
parent
commit
add3411542
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/text.php

+ 1
- 1
include/text.php 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,'/');


Loading…
Cancel
Save