mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-05 07:20:58 +08:00
Update torrents.php
Supports dynamic pagination parameters.
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