From 03002e52f1a24c129a1afa4b60ceb37c3e820604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=8A=E5=A4=95=E6=98=AF=E4=BD=95=E5=B9=B4?= Date: Mon, 22 Sep 2025 21:09:06 +0800 Subject: [PATCH] Update torrents.php Supports dynamic pagination parameters. --- public/torrents.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/public/torrents.php b/public/torrents.php index f29739be..44da6759 100644 --- a/public/torrents.php +++ b/public/torrents.php @@ -960,9 +960,10 @@ if ($shouldUseMeili) { $count += $row[0]; } } - -if ($CURUSER["torrentsperpage"]) -$torrentsperpage = (int)$CURUSER["torrentsperpage"]; +if (isset($_GET['pageSize'])) { + $torrentsperpage = $_GET['pageSize']; +} elseif ($CURUSER["torrentsperpage"]) + $torrentsperpage = (int)$CURUSER["torrentsperpage"]; elseif ($torrentsperpage_main) $torrentsperpage = $torrentsperpage_main; else $torrentsperpage = 100;