Browse Source

fix search pagination

pull/8/head
d47081 2 years ago
parent
commit
2a7b066368
  1. 8
      public/index.php

8
public/index.php

@ -82,6 +82,10 @@ if (!in_array($page, [0, 1])) { @@ -82,6 +82,10 @@ if (!in_array($page, [0, 1])) {
} else {
$newer = ($ns ? $ns . '/' . ($page - 1) : ($page - 1));
}
if ($query) {
$newer = $newer . '?q=' . $query;
}
}
if ($data) {
@ -90,6 +94,10 @@ if ($data) { @@ -90,6 +94,10 @@ if ($data) {
} else {
$older = ($ns ? $ns . '/' . ($page + 1) : ($page + 1));
}
if ($query) {
$older = $older . '?q=' . $query;
}
}
if ($ns) {

Loading…
Cancel
Save