From 4510e613206ac172ea287669a6453d34b91fa419 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 6 Jan 2002 01:06:42 +0000 Subject: [PATCH] Minor changes git-svn-id: file:///svn/phpbb/trunk@1807 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 7199bc8c31..898058e770 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -280,7 +280,7 @@ function init_userprefs($userdata) } } - if( !file_exists($phpbb_root_path . "language/lang_" . $board_config['default_lang'] . "/lang_main.".$phpEx) ) + if( !@file_exists($phpbb_root_path . "language/lang_" . $board_config['default_lang'] . "/lang_main.".$phpEx) ) { $board_config['default_lang'] = "english"; } @@ -289,7 +289,7 @@ function init_userprefs($userdata) if( defined("IN_ADMIN") ) { - if( !file_exists($phpbb_root_path . "language/lang_" . $board_config['default_lang'] . "/lang_admin.".$phpEx) ) + if( !@file_exists($phpbb_root_path . "language/lang_" . $board_config['default_lang'] . "/lang_admin.".$phpEx) ) { $board_config['default_lang'] = "english"; } @@ -304,6 +304,7 @@ function init_userprefs($userdata) $new_value = str_replace("_lang", "_" . $board_config['default_lang'], $value); $images[$key] = ( file_exists($new_value) ) ? $new_value : str_replace("_lang", "_english", $value); +// list($images_width[$key], $images_height[$key]) = getimagesize($images[$key]); } }