mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
fix torrent list pagination
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.7.30');
|
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.7.30');
|
||||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-10-27');
|
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-10-29');
|
||||||
defined('IN_TRACKER') || define('IN_TRACKER', false);
|
defined('IN_TRACKER') || define('IN_TRACKER', false);
|
||||||
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
||||||
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
||||||
|
|||||||
@@ -380,7 +380,7 @@ class Update extends Install
|
|||||||
|
|
||||||
foreach (glob("$extractDir/*") as $path) {
|
foreach (glob("$extractDir/*") as $path) {
|
||||||
if (is_dir($path)) {
|
if (is_dir($path)) {
|
||||||
$excludes = array_merge(ToolRepository::BACKUP_EXCLUDES, ['public/favicon.ico', '.env']);
|
$excludes = array_merge(ToolRepository::BACKUP_EXCLUDES, ['public/favicon.ico', '.env', 'public/pic/category/chd']);
|
||||||
if (!in_array('composer', $includes)) {
|
if (!in_array('composer', $includes)) {
|
||||||
$excludes[] = 'composer.lock';
|
$excludes[] = 'composer.lock';
|
||||||
$excludes[] = 'composer.json';
|
$excludes[] = 'composer.json';
|
||||||
|
|||||||
@@ -819,6 +819,7 @@ if ($approvalStatusIconEnabled == 'yes' || (user_can('torrent-approval') && $app
|
|||||||
if ($showApprovalStatusFilter && isset($_REQUEST['approval_status']) && is_numeric($_REQUEST['approval_status'])) {
|
if ($showApprovalStatusFilter && isset($_REQUEST['approval_status']) && is_numeric($_REQUEST['approval_status'])) {
|
||||||
$approvalStatus = intval($_REQUEST['approval_status']);
|
$approvalStatus = intval($_REQUEST['approval_status']);
|
||||||
$wherea[] = "torrents.approval_status = $approvalStatus";
|
$wherea[] = "torrents.approval_status = $approvalStatus";
|
||||||
|
$addparam .= "approval_status=$approvalStatus&";
|
||||||
} elseif ($approvalStatusNoneVisible == 'no' && !user_can('torrent-approval')) {
|
} elseif ($approvalStatusNoneVisible == 'no' && !user_can('torrent-approval')) {
|
||||||
$wherea[] = "torrents.approval_status = " . \App\Models\Torrent::APPROVAL_STATUS_ALLOW;
|
$wherea[] = "torrents.approval_status = " . \App\Models\Torrent::APPROVAL_STATUS_ALLOW;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user