From 42c89f44508ea94770e2d3578736a4e48ed61f08 Mon Sep 17 00:00:00 2001 From: James Atkinson Date: Mon, 15 Apr 2002 14:48:42 +0000 Subject: [PATCH] Fixed bug #19, simple header not showing in error messages that needed it git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2528 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 2 +- phpBB/includes/functions_search.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 13fe5bd60c..f43ba358c0 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -491,7 +491,7 @@ function obtain_word_list(&$orig_word, &$replacement_word) // function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '', $err_file = '', $sql = '') { - global $db, $template, $board_config, $theme, $lang, $phpEx, $phpbb_root_path, $nav_links; + global $db, $template, $board_config, $theme, $lang, $phpEx, $phpbb_root_path, $nav_links, $gen_simple_header; global $userdata, $user_ip, $session_length; global $starttime; diff --git a/phpBB/includes/functions_search.php b/phpBB/includes/functions_search.php index f42ff475c4..b02d094b6b 100644 --- a/phpBB/includes/functions_search.php +++ b/phpBB/includes/functions_search.php @@ -428,7 +428,9 @@ function remove_search_post($post_id_sql) function username_search($search_match) { global $db, $board_config, $template, $lang, $images, $theme, $phpEx, $phpbb_root_path; - global $starttime; + global $starttime, $gen_simple_header; + + $gen_simple_header = TRUE; $username_list = ''; if ( !empty($search_match) ) @@ -459,7 +461,6 @@ function username_search($search_match) $db->sql_freeresult($result); } - $gen_simple_header = TRUE; $page_title = $lang['Search']; include($phpbb_root_path . 'includes/page_header.'.$phpEx);