mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
Merge pull request #378 from JustLookAtNow/JustLookAtNow-patch-pageSize
种子列表页支持传参动态设置每页条数
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user