mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
Update torrents.php
Supports dynamic pagination parameters.
This commit is contained in:
@@ -960,9 +960,10 @@ if ($shouldUseMeili) {
|
|||||||
$count += $row[0];
|
$count += $row[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (isset($_GET['pageSize'])) {
|
||||||
if ($CURUSER["torrentsperpage"])
|
$torrentsperpage = $_GET['pageSize'];
|
||||||
$torrentsperpage = (int)$CURUSER["torrentsperpage"];
|
} elseif ($CURUSER["torrentsperpage"])
|
||||||
|
$torrentsperpage = (int)$CURUSER["torrentsperpage"];
|
||||||
elseif ($torrentsperpage_main)
|
elseif ($torrentsperpage_main)
|
||||||
$torrentsperpage = $torrentsperpage_main;
|
$torrentsperpage = $torrentsperpage_main;
|
||||||
else $torrentsperpage = 100;
|
else $torrentsperpage = 100;
|
||||||
|
|||||||
Reference in New Issue
Block a user