aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2010-05-17 22:50:03 +0800
committerAndreas Fischer <bantu@phpbb.com>2010-08-29 16:09:09 +0200
commitf1d50057975695137d44f5f4b4c035e70d878657 (patch)
tree2976dd4bc9f52434a71175ce321ae1c4ac54edc9 /phpBB/includes/functions.php
parentdbe8fb6488005c3295f839c7302a56f1de872426 (diff)
downloadforums-f1d50057975695137d44f5f4b4c035e70d878657.tar
forums-f1d50057975695137d44f5f4b4c035e70d878657.tar.gz
forums-f1d50057975695137d44f5f4b4c035e70d878657.tar.bz2
forums-f1d50057975695137d44f5f4b4c035e70d878657.tar.xz
forums-f1d50057975695137d44f5f4b4c035e70d878657.zip
[ticket/9613] Implement a load switch for unread posts search feature.
Since unread posts search can produce a high server load in certain circumstances, we implement a switch for ACP "Load settings" to have an option to disable this type of search. PHPBB3-9613
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index c4ff998e69..efa835574d 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -4465,6 +4465,8 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
'S_ENABLE_FEEDS_TOPICS_ACTIVE' => ($config['feed_topics_active']) ? true : false,
'S_ENABLE_FEEDS_NEWS' => ($s_feed_news) ? true : false,
+ 'S_LOAD_UNREADS' => ($config['load_unreads_search']) ? true : false,
+
'T_THEME_PATH' => "{$web_path}styles/" . $user->theme['theme_path'] . '/theme',
'T_TEMPLATE_PATH' => "{$web_path}styles/" . $user->theme['template_path'] . '/template',
'T_SUPER_TEMPLATE_PATH' => (isset($user->theme['template_inherit_path']) && $user->theme['template_inherit_path']) ? "{$web_path}styles/" . $user->theme['template_inherit_path'] . '/template' : "{$web_path}styles/" . $user->theme['template_path'] . '/template',