mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-18 22:58:10 +01:00
[ticket/11360] Change second parameter in page_header function
PHPBB3-11360
This commit is contained in:
parent
1af7697143
commit
18bed2ea47
@ -2679,7 +2679,7 @@ function confirm_box($check, $title = '', $hidden = '', $html_body = 'confirm_bo
|
||||
}
|
||||
else
|
||||
{
|
||||
page_header(((!isset($user->lang[$title])) ? $user->lang['CONFIRM'] : $user->lang[$title]), false);
|
||||
page_header((!isset($user->lang[$title])) ? $user->lang['CONFIRM'] : $user->lang[$title]);
|
||||
}
|
||||
|
||||
$template->set_filenames(array(
|
||||
@ -2956,7 +2956,7 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
|
||||
'PASSWORD_CREDENTIAL' => ($admin) ? 'password_' . $credential : 'password',
|
||||
));
|
||||
|
||||
page_header($user->lang['LOGIN'], false);
|
||||
page_header($user->lang['LOGIN']);
|
||||
|
||||
$template->set_filenames(array(
|
||||
'body' => 'login_body.html')
|
||||
@ -3032,7 +3032,7 @@ function login_forum_box($forum_data)
|
||||
$template->assign_var('LOGIN_ERROR', $user->lang['WRONG_PASSWORD']);
|
||||
}
|
||||
|
||||
page_header($user->lang['LOGIN'], false);
|
||||
page_header($user->lang['LOGIN']);
|
||||
|
||||
$template->assign_vars(array(
|
||||
'FORUM_NAME' => isset($forum_data['forum_name']) ? $forum_data['forum_name'] : '',
|
||||
@ -3945,7 +3945,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
|
||||
}
|
||||
else
|
||||
{
|
||||
page_header($msg_title, false);
|
||||
page_header($msg_title);
|
||||
}
|
||||
}
|
||||
|
||||
@ -4622,7 +4622,7 @@ function phpbb_build_hidden_fields_for_query_params($request, $exclude = null)
|
||||
/**
|
||||
* Generate page header
|
||||
*/
|
||||
function page_header($page_title = '', $display_online_list = true, $item_id = 0, $item = 'forum')
|
||||
function page_header($page_title = '', $display_online_list = false, $item_id = 0, $item = 'forum')
|
||||
{
|
||||
global $db, $config, $template, $SID, $_SID, $_EXTRA_URL, $user, $auth, $phpEx, $phpbb_root_path;
|
||||
global $phpbb_dispatcher, $request, $phpbb_container, $phpbb_admin_path;
|
||||
|
@ -193,7 +193,7 @@ $vars = array('page_title');
|
||||
extract($phpbb_dispatcher->trigger_event('core.index_modify_page_title', compact($vars)));
|
||||
|
||||
// Output page
|
||||
page_header($page_title);
|
||||
page_header($page_title, true);
|
||||
|
||||
$template->set_filenames(array(
|
||||
'body' => 'index_body.html')
|
||||
|
@ -1623,7 +1623,7 @@ switch ($mode)
|
||||
}
|
||||
|
||||
// Output the page
|
||||
page_header($page_title, false);
|
||||
page_header($page_title);
|
||||
|
||||
$template->set_filenames(array(
|
||||
'body' => $template_html)
|
||||
|
@ -79,7 +79,7 @@ class helper
|
||||
*/
|
||||
public function render($template_file, $page_title = '', $status_code = 200)
|
||||
{
|
||||
page_header($page_title);
|
||||
page_header($page_title, true);
|
||||
|
||||
$this->template->set_filenames(array(
|
||||
'body' => $template_file,
|
||||
|
@ -49,7 +49,7 @@ class kernel_exception_subscriber implements EventSubscriberInterface
|
||||
*/
|
||||
public function on_kernel_exception(GetResponseForExceptionEvent $event)
|
||||
{
|
||||
page_header($this->user->lang('INFORMATION'));
|
||||
page_header($this->user->lang('INFORMATION'), true);
|
||||
|
||||
$exception = $event->getException();
|
||||
|
||||
|
@ -1595,7 +1595,7 @@ if ($allowed)
|
||||
posting_gen_attachment_entry($attachment_data, $filename_data, $allowed);
|
||||
|
||||
// Output page ...
|
||||
page_header($page_title, false);
|
||||
page_header($page_title);
|
||||
|
||||
$template->set_filenames(array(
|
||||
'body' => 'posting_body.html')
|
||||
@ -1623,7 +1623,7 @@ function upload_popup($forum_style = 0)
|
||||
|
||||
($forum_style) ? $user->setup('posting', $forum_style) : $user->setup('posting');
|
||||
|
||||
page_header($user->lang['PROGRESS_BAR'], false);
|
||||
page_header($user->lang['PROGRESS_BAR']);
|
||||
|
||||
$template->set_filenames(array(
|
||||
'popup' => 'posting_progress_bar.html')
|
||||
|
@ -307,7 +307,7 @@ $template->assign_vars(array(
|
||||
generate_forum_nav($forum_data);
|
||||
|
||||
// Start output of page
|
||||
page_header($page_title);
|
||||
page_header($page_title, true);
|
||||
|
||||
$template->set_filenames(array(
|
||||
'body' => 'report_body.html')
|
||||
|
@ -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']);
|
||||
page_header((($l_search_title) ? $l_search_title : $user->lang['SEARCH']), true);
|
||||
|
||||
$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']);
|
||||
page_header($user->lang['SEARCH'], true);
|
||||
|
||||
$template->set_filenames(array(
|
||||
'body' => 'search_body.html')
|
||||
|
@ -128,7 +128,7 @@ switch ($mode)
|
||||
);
|
||||
|
||||
// Disable online list
|
||||
page_header($user->lang[$title], false);
|
||||
page_header($user->lang[$title]);
|
||||
|
||||
$template->assign_vars(array(
|
||||
'S_AGREEMENT' => true,
|
||||
|
@ -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']);
|
||||
page_header($user->lang['WHO_IS_ONLINE'], true);
|
||||
|
||||
$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']);
|
||||
page_header($user->lang['WHO_IS_ONLINE'], true);
|
||||
|
||||
$template->set_filenames(array(
|
||||
'body' => 'viewonline_body.html')
|
||||
|
Loading…
x
Reference in New Issue
Block a user