Update torrents.php

Supports dynamic pagination parameters.
This commit is contained in:
今夕是何年
2025-09-22 21:09:06 +08:00
committed by GitHub
parent d906f73b03
commit 03002e52f1

View File

@@ -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;