mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Minor changes
git-svn-id: file:///svn/phpbb/trunk@1807 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
d82c63ce16
commit
4510e61320
1 changed files with 3 additions and 2 deletions
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue