mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Minor improvements (#194)
This commit is contained in:
parent
c56d29029c
commit
668242a36e
@ -538,7 +538,8 @@ define('MEM_USAGE', function_exists('memory_get_usage'));
|
||||
$bb_cfg['mem_on_start'] = (MEM_USAGE) ? memory_get_usage() : 0;
|
||||
|
||||
$bb_cfg['translate_dates'] = true; // in displaying time
|
||||
$bb_cfg['use_word_censor'] = true;
|
||||
$bb_cfg['use_word_censor'] = true; // использовать цензор слов
|
||||
$bb_cfg['show_jumpbox'] = true; // показывать ли jumpbox
|
||||
|
||||
$bb_cfg['last_visit_date_format'] = 'd-M H:i';
|
||||
$bb_cfg['last_post_date_format'] = 'd-M-y H:i';
|
||||
|
@ -1791,8 +1791,6 @@ function obtain_word_list (&$orig_word, &$replacement_word)
|
||||
$orig_word[] = '#(?<![\p{Nd}\p{L}_])(' . str_replace('\*', '[\p{Nd}\p{L}_]*?', preg_quote($row['word'], '#')) . ')(?![\p{Nd}\p{L}_])#iu';
|
||||
$replacement_word[] = $row['replacement'];
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function bb_die ($msg_text)
|
||||
@ -2854,4 +2852,4 @@ function bb_captcha ($mode, $callback = '')
|
||||
bb_simple_die(__FUNCTION__ .": invalid mode '$mode'");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -421,7 +421,7 @@ $u_auth[] = ($is_auth['auth_mod']) ? $lang['RULES_MODERATE'] : '';
|
||||
$u_auth = join("<br />\n", $u_auth);
|
||||
|
||||
$template->assign_vars(array(
|
||||
'SHOW_JUMPBOX' => true,
|
||||
'SHOW_JUMPBOX' => $bb_cfg['show_jumpbox'],
|
||||
'PAGE_TITLE' => htmlCHR($forum_data['forum_name']),
|
||||
'FORUM_ID' => $forum_id,
|
||||
'FORUM_NAME' => htmlCHR($forum_data['forum_name']),
|
||||
@ -575,4 +575,4 @@ $template->assign_vars(array(
|
||||
'PARENT_FORUM_NAME' => ($parent_id = $forum_data['forum_parent']) ? $forums['forum_name_html'][$parent_id] : '',
|
||||
));
|
||||
|
||||
print_page('viewforum.tpl');
|
||||
print_page('viewforum.tpl');
|
||||
|
@ -547,7 +547,7 @@ $template->assign_vars(array(
|
||||
'PAGE_URL' => $pg_url,
|
||||
'PAGE_URL_PPP' => url_arg($pg_url, 'ppp', null),
|
||||
'PAGE_START' => $start,
|
||||
'SHOW_JUMPBOX' => true,
|
||||
'SHOW_JUMPBOX' => $bb_cfg['show_jumpbox'],
|
||||
|
||||
'FORUM_ID' => $forum_id,
|
||||
'FORUM_NAME' => htmlCHR($forum_name),
|
||||
|
Loading…
Reference in New Issue
Block a user