From 668242a36e6501ec861611bebc0347384caf96b5 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sat, 24 Jun 2023 11:08:34 +0700 Subject: [PATCH] Minor improvements (#194) --- library/config.php | 3 ++- library/includes/functions.php | 4 +--- viewforum.php | 4 ++-- viewtopic.php | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/library/config.php b/library/config.php index 29dcb13a..d02e1d42 100644 --- a/library/config.php +++ b/library/config.php @@ -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'; diff --git a/library/includes/functions.php b/library/includes/functions.php index 5589aaa8..46063e8d 100644 --- a/library/includes/functions.php +++ b/library/includes/functions.php @@ -1791,8 +1791,6 @@ function obtain_word_list (&$orig_word, &$replacement_word) $orig_word[] = '#(?\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'); \ No newline at end of file +print_page('viewforum.tpl'); diff --git a/viewtopic.php b/viewtopic.php index dbbd9656..0e561eb2 100644 --- a/viewtopic.php +++ b/viewtopic.php @@ -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),