From f685c49fa2629ca69a0fff28212d0dde7a822f39 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Wed, 17 Jul 2002 14:13:27 +0000 Subject: Updates to message output for admin (primarily) git-svn-id: file:///svn/phpbb/trunk@2707 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'phpBB/includes') diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index d6b93e202f..4ac62a885e 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -435,7 +435,7 @@ function create_date($format, $gmepoch, $tz) if ( empty($translate) && $board_config['default_lang'] != 'english' ) { @reset($lang['datetime']); - while ( list($match, $replace) = @each($lang['datetime']) ) + foreach ( $lang['datetime'] as $match => $replace ) { $translate[$match] = $replace; } @@ -580,7 +580,7 @@ function obtain_word_list(&$orig_word, &$replacement_word) // failures, etc. // -> ERROR : Use for any error, a simple page will be output // -function message_die($msg_code, $msg_text = '', $msg_title = '') +function message_die($msg_code, $msg_text = '', $msg_title = '', $display_header = false) { global $db, $session, $acl, $template, $board_config, $theme, $lang, $userdata, $user_ip; global $phpEx, $phpbb_root_path, $nav_links, $starttime; @@ -599,7 +599,7 @@ function message_die($msg_code, $msg_text = '', $msg_title = '') if ( defined('IN_ADMIN') ) { - page_message($msg_title, $msg_text); + page_message($msg_title, $msg_text, $display_header); } else { -- cgit v1.2.1