Merge pull request #378 from JustLookAtNow/JustLookAtNow-patch-pageSize

种子列表页支持传参动态设置每页条数
This commit is contained in:
xiaomlove
2025-09-22 20:16:57 +07:00
committed by GitHub

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;