aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorgeetakshi <geetakshi.19@gmail.com>2014-03-20 17:15:43 +0530
committergeetakshi <geetakshi.19@gmail.com>2014-03-20 17:15:43 +0530
commit5afb06102b4343971947278a1633791597342a6f (patch)
tree352530dae2f1cae55a9268115495efbcd3cbbf46 /phpBB
parent18bed2ea476849fce3774783d728a763ab3e7138 (diff)
downloadforums-5afb06102b4343971947278a1633791597342a6f.tar
forums-5afb06102b4343971947278a1633791597342a6f.tar.gz
forums-5afb06102b4343971947278a1633791597342a6f.tar.bz2
forums-5afb06102b4343971947278a1633791597342a6f.tar.xz
forums-5afb06102b4343971947278a1633791597342a6f.zip
[ticket/11360] Avoiding online list where not required
PHPBB3-11360
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/phpbb/controller/helper.php4
-rw-r--r--phpBB/phpbb/event/kernel_exception_subscriber.php2
-rw-r--r--phpBB/report.php2
-rw-r--r--phpBB/search.php4
-rw-r--r--phpBB/viewonline.php4
5 files changed, 8 insertions, 8 deletions
diff --git a/phpBB/phpbb/controller/helper.php b/phpBB/phpbb/controller/helper.php
index 98758c0371..54c30c93fc 100644
--- a/phpBB/phpbb/controller/helper.php
+++ b/phpBB/phpbb/controller/helper.php
@@ -77,9 +77,9 @@ class helper
* @param int $status_code The status code to be sent to the page header
* @return Response object containing rendered page
*/
- public function render($template_file, $page_title = '', $status_code = 200)
+ public function render($template_file, $page_title = '', $status_code = 200, $display_online_list = false)
{
- page_header($page_title, true);
+ page_header($page_title, $display_online_list);
$this->template->set_filenames(array(
'body' => $template_file,
diff --git a/phpBB/phpbb/event/kernel_exception_subscriber.php b/phpBB/phpbb/event/kernel_exception_subscriber.php
index 74037d8444..8a4de1fbad 100644
--- a/phpBB/phpbb/event/kernel_exception_subscriber.php
+++ b/phpBB/phpbb/event/kernel_exception_subscriber.php
@@ -49,7 +49,7 @@ class kernel_exception_subscriber implements EventSubscriberInterface
*/
public function on_kernel_exception(GetResponseForExceptionEvent $event)
{
- page_header($this->user->lang('INFORMATION'), true);
+ page_header($this->user->lang('INFORMATION'));
$exception = $event->getException();
diff --git a/phpBB/report.php b/phpBB/report.php
index 57825e6485..5081f90ad1 100644
--- a/phpBB/report.php
+++ b/phpBB/report.php
@@ -307,7 +307,7 @@ $template->assign_vars(array(
generate_forum_nav($forum_data);
// Start output of page
-page_header($page_title, true);
+page_header($page_title);
$template->set_filenames(array(
'body' => 'report_body.html')
diff --git a/phpBB/search.php b/phpBB/search.php
index d135553029..4756a941f5 100644
--- a/phpBB/search.php
+++ b/phpBB/search.php
@@ -1027,7 +1027,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
}
unset($rowset);
- page_header((($l_search_title) ? $l_search_title : $user->lang['SEARCH']), true);
+ page_header(($l_search_title) ? $l_search_title : $user->lang['SEARCH']);
$template->set_filenames(array(
'body' => 'search_results.html')
@@ -1215,7 +1215,7 @@ if ($auth->acl_get('a_search'))
}
// Output the basic page
-page_header($user->lang['SEARCH'], true);
+page_header($user->lang['SEARCH']);
$template->set_filenames(array(
'body' => 'search_body.html')
diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php
index e26dc4dc90..87813596fa 100644
--- a/phpBB/viewonline.php
+++ b/phpBB/viewonline.php
@@ -70,7 +70,7 @@ if ($mode == 'whois' && $auth->acl_get('a_') && $session_id)
$db->sql_freeresult($result);
// Output the page
- page_header($user->lang['WHO_IS_ONLINE'], true);
+ page_header($user->lang['WHO_IS_ONLINE']);
$template->set_filenames(array(
'body' => 'viewonline_whois.html')
@@ -444,7 +444,7 @@ $template->assign_vars(array(
$config['load_online'] = false;
// Output the page
-page_header($user->lang['WHO_IS_ONLINE'], true);
+page_header($user->lang['WHO_IS_ONLINE']);
$template->set_filenames(array(
'body' => 'viewonline_body.html')