aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2023-12-26 23:01:04 -0500
committerSquibid <me@zacharyscheiman.com>2023-12-26 23:01:04 -0500
commitb37442334209a4d6729b44c8a5a5b494e388c54b (patch)
treee3a8564ac7e9052a323a2a1e56b88f1806c29c25
parent404bd217ac5fdad3e4e3c49657cbafacfa2742db (diff)
downloadwallheaven-b37442334209a4d6729b44c8a5a5b494e388c54b.tar.gz
wallheaven-b37442334209a4d6729b44c8a5a5b494e388c54b.tar.bz2
wallheaven-b37442334209a4d6729b44c8a5a5b494e388c54b.zip
show a total of 10 pages
Diffstat (limited to '')
-rw-r--r--query.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/query.php b/query.php
index 41cc918..6aa8ee0 100644
--- a/query.php
+++ b/query.php
@@ -40,7 +40,7 @@
if ($page > 1)
printf("<a href='%s&page=1'><<</a> <a href='%s&page=%d'><</a> ",
$_SERVER['REQUEST_URI'], $_SERVER['REQUEST_URI'], $page - 1);
- for ($i = $page; $i <= ($res[1]["pages"] > $page + 10 ? $page + 10 : $res[1]["pages"]); $i++)
+ for ($i = $page; $i <= ($res[1]["pages"] > $page + 9 ? $page + 9 : $res[1]["pages"]); $i++)
printf("<a href='%s&page=%d'>%d</a> ", $_SERVER['REQUEST_URI'], $i, $i);
if ($page != $res[1]["pages"])
printf("<a href='%s&page=%s'>></a> <a href='%s&page=%s'>>></a> ",