[ticket/11360] Avoiding online list where not required

PHPBB3-11360
This commit is contained in:
geetakshi 2014-03-20 17:15:43 +05:30
parent 18bed2ea47
commit 5afb06102b
5 changed files with 8 additions and 8 deletions

View file

@ -77,9 +77,9 @@ class helper
* @param int $status_code The status code to be sent to the page header * @param int $status_code The status code to be sent to the page header
* @return Response object containing rendered page * @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( $this->template->set_filenames(array(
'body' => $template_file, 'body' => $template_file,

View file

@ -49,7 +49,7 @@ class kernel_exception_subscriber implements EventSubscriberInterface
*/ */
public function on_kernel_exception(GetResponseForExceptionEvent $event) public function on_kernel_exception(GetResponseForExceptionEvent $event)
{ {
page_header($this->user->lang('INFORMATION'), true); page_header($this->user->lang('INFORMATION'));
$exception = $event->getException(); $exception = $event->getException();

View file

@ -307,7 +307,7 @@ $template->assign_vars(array(
generate_forum_nav($forum_data); generate_forum_nav($forum_data);
// Start output of page // Start output of page
page_header($page_title, true); page_header($page_title);
$template->set_filenames(array( $template->set_filenames(array(
'body' => 'report_body.html') 'body' => 'report_body.html')

View file

@ -1027,7 +1027,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
} }
unset($rowset); 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( $template->set_filenames(array(
'body' => 'search_results.html') 'body' => 'search_results.html')
@ -1215,7 +1215,7 @@ if ($auth->acl_get('a_search'))
} }
// Output the basic page // Output the basic page
page_header($user->lang['SEARCH'], true); page_header($user->lang['SEARCH']);
$template->set_filenames(array( $template->set_filenames(array(
'body' => 'search_body.html') 'body' => 'search_body.html')

View file

@ -70,7 +70,7 @@ if ($mode == 'whois' && $auth->acl_get('a_') && $session_id)
$db->sql_freeresult($result); $db->sql_freeresult($result);
// Output the page // Output the page
page_header($user->lang['WHO_IS_ONLINE'], true); page_header($user->lang['WHO_IS_ONLINE']);
$template->set_filenames(array( $template->set_filenames(array(
'body' => 'viewonline_whois.html') 'body' => 'viewonline_whois.html')
@ -444,7 +444,7 @@ $template->assign_vars(array(
$config['load_online'] = false; $config['load_online'] = false;
// Output the page // Output the page
page_header($user->lang['WHO_IS_ONLINE'], true); page_header($user->lang['WHO_IS_ONLINE']);
$template->set_filenames(array( $template->set_filenames(array(
'body' => 'viewonline_body.html') 'body' => 'viewonline_body.html')