mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Fixed broken "Disable Board" function (#1529)
* Fixed broken "Disable Board" function * Update CHANGELOG.md
This commit is contained in:
parent
082d553a29
commit
a90653e7e2
3 changed files with 10 additions and 15 deletions
|
@ -459,15 +459,11 @@ if (($bb_cfg['board_disable'] || is_file(BB_DISABLED)) && !defined('IN_ADMIN') &
|
|||
if ($bb_cfg['board_disable']) {
|
||||
// admin lock
|
||||
send_no_cache_headers();
|
||||
if (\TorrentPier\Helpers\CronHelper::isEnabled()) {
|
||||
bb_die('BOARD_DISABLE', 503);
|
||||
}
|
||||
bb_die('BOARD_DISABLE', 503);
|
||||
} elseif (is_file(BB_DISABLED)) {
|
||||
// trigger lock
|
||||
TorrentPier\Helpers\CronHelper::releaseDeadlock();
|
||||
send_no_cache_headers();
|
||||
if (\TorrentPier\Helpers\CronHelper::isEnabled()) {
|
||||
bb_die('BOARD_DISABLE_CRON', 503);
|
||||
}
|
||||
bb_die('BOARD_DISABLE_CRON', (\TorrentPier\Helpers\CronHelper::isEnabled() ? 503 : null));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue