Minor improvements (#893)

This commit is contained in:
Roman Kelesidis 2023-09-07 21:19:21 +07:00 committed by GitHub
commit 5ed4fdadd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 5 deletions

View file

@ -14,8 +14,8 @@ if (!defined('IN_TRACKER')) {
global $bb_cfg;
// Exit if tracker is disabled
if ($bb_cfg['tracker']['off']) {
msg_die($bb_cfg['tracker']['off_reason']);
if ($bb_cfg['tracker']['bt_off']) {
msg_die($bb_cfg['tracker']['bt_off_reason']);
}
//

View file

@ -38,7 +38,6 @@ switch ($mode) {
global $template;
$match = XS_TPL_PREFIX;
$match_len = strlen($match);
$dir = $template->cachedir;
$res = @opendir($dir);
while (($file = readdir($res)) !== false) {

View file

@ -627,8 +627,8 @@ $bb_cfg['page'] = [
// Tracker settings
$bb_cfg['tracker'] = [
'autoclean' => true,
'off' => false,
'off_reason' => 'temporarily disabled',
'bt_off' => false,
'bt_off_reason' => 'Temporarily disabled',
'numwant' => 50,
'update_dlstat' => true,
'expire_factor' => 2.5,