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; global $bb_cfg;
// Exit if tracker is disabled // Exit if tracker is disabled
if ($bb_cfg['tracker']['off']) { if ($bb_cfg['tracker']['bt_off']) {
msg_die($bb_cfg['tracker']['off_reason']); msg_die($bb_cfg['tracker']['bt_off_reason']);
} }
// //

View file

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

View file

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