X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ftext.php;h=8ce54b3c6786c130a6c93e5e72402e855946418b;hb=cdebdc777e38506e673864377ce17a5af91dd8a1;hp=4aa529d31667c8abe4135130599ba805e776b7af;hpb=1b2a90a10f6a2e03ae9a6a61f0c7f7b9a955327e;p=friendica.git diff --git a/include/text.php b/include/text.php index 4aa529d316..8ce54b3c67 100644 --- a/include/text.php +++ b/include/text.php @@ -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,'/');