mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Merge pull request #568 from torrentpier/fixed-ajax-error
Fixed HTTP 500 error [AJAX]
This commit is contained in:
commit
79cacad216
1 changed files with 7 additions and 5 deletions
|
@ -81,6 +81,7 @@ class Ajax
|
||||||
}
|
}
|
||||||
|
|
||||||
// Exit if board is disabled via ON/OFF trigger or by admin
|
// Exit if board is disabled via ON/OFF trigger or by admin
|
||||||
|
if ($bb_cfg['board_disable'] || file_exists(BB_DISABLED)) {
|
||||||
if ($action_params[1] !== true) {
|
if ($action_params[1] !== true) {
|
||||||
if ($bb_cfg['board_disable']) {
|
if ($bb_cfg['board_disable']) {
|
||||||
$this->ajax_die($lang['BOARD_DISABLE']);
|
$this->ajax_die($lang['BOARD_DISABLE']);
|
||||||
|
@ -88,6 +89,7 @@ class Ajax
|
||||||
$this->ajax_die($lang['BOARD_DISABLE_CRON']);
|
$this->ajax_die($lang['BOARD_DISABLE_CRON']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Auth check
|
// Auth check
|
||||||
switch ($action_params[0]) {
|
switch ($action_params[0]) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue