mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-10-17 05:22:23 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
e728633349
|
@ -991,23 +991,11 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
// regular expression to strip out the pg (page number) variable to
|
// regular expression to strip out the pg (page number) variable to
|
||||||
// achieve the same effect. This seems to be less haphazard though...
|
// achieve the same effect. This seems to be less haphazard though...
|
||||||
$resultsURI = $baseURI;
|
$resultsURI = $baseURI;
|
||||||
|
unset($params['pg']);
|
||||||
$first=true;
|
$first=true;
|
||||||
foreach ($params as $key=>$value) {
|
if($params) {
|
||||||
// Don't include the page number in the basic URI. This is added in
|
$resultsURI .= '?'.http_build_query($params);
|
||||||
// during the list display loop.
|
$first=false;
|
||||||
if (!strcasecmp($key, "pg")) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (is_array($value)) {
|
|
||||||
foreach ($value as $subkey=>$subvalue) {
|
|
||||||
$resultsURI .= ($first ? "?" : "&").$key."%5B".$subkey."%5D=".urlencode($subvalue);
|
|
||||||
$first = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$resultsURI .= ($first ? "?" : "&").$key."=".urlencode($value);
|
|
||||||
}
|
|
||||||
$first = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<div class=\"pagination pagination-small\">";
|
echo "<div class=\"pagination pagination-small\">";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user