File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -179,15 +179,12 @@ public function createUrl($page, $perPage=null)
179179 {
180180 $ requestUri = parse_url ($ _SERVER ["REQUEST_URI " ], PHP_URL_PATH );
181181 // Add or reset page parameter
182- $ page = (int ) $ page ;
182+ $ params [ $ this -> pageParam ] = (int ) $ page ;
183183 if ($ this ->perPageParam ) {
184- $ perPage = ($ perPage ) ? $ perPage : $ this ->perPage ;
184+ $ params [ $ this -> perPageParam ] = ($ perPage ) ? $ perPage : $ this ->perPage ;
185185 }
186186 // Build URL
187- $ url = "// {$ _SERVER ['HTTP_HOST ' ]}{$ requestUri }? " . http_build_query (array_merge ($ _GET , [
188- $ this ->pageParam => $ page ,
189- $ this ->perPageParam => $ perPage ,
190- ]));
187+ $ url = "// {$ _SERVER ['HTTP_HOST ' ]}{$ requestUri }? " . http_build_query (array_merge ($ _GET , $ params ));
191188
192189 return $ url ;
193190 }
You can’t perform that action at this time.
0 commit comments