Minor changes

git-svn-id: file:///svn/phpbb/trunk@1807 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2002-01-06 01:06:42 +00:00
parent d82c63ce16
commit 4510e61320

View file

@ -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]);
}
}