- 
    Bug 
- 
    Resolution: Fixed
- 
    Blocker 
- 
    3.1.5-RC1
- 
    None
- 
    None
The phpbb\user::set_lang() method incorrectly checks if a path to a language files needs to be prefixed with the phpbb_root_path and suffixed with the .php extension. This causes the following error when the board's language is not English and the user's language is English.
| General Error | 
| Language file ./../ext/board3/portal/language/en/ext/board3/portal/language/de/info_acp_portal.php.php couldn't be opened. | 
|   | 
| BACKTRACE | 
|   | 
| FILE: (not given by php) | 
| LINE: (not given by php) | 
| CALL: msg_handler() | 
|   | 
| FILE: [ROOT]/phpbb/user.php | 
| LINE: 667 | 
| CALL: trigger_error() | 
|   | 
| FILE: [ROOT]/phpbb/user.php | 
| LINE: 577 | 
| CALL: phpbb\user->set_lang() | 
|   | 
| FILE: [ROOT]/phpbb/user.php | 
| LINE: 596 | 
| CALL: phpbb\user->add_lang() | 
|   | 
| FILE: [ROOT]/includes/functions_module.php | 
| LINE: 1092 | 
| CALL: phpbb\user->add_lang_ext() | 
|   | 
| FILE: [ROOT]/includes/functions_module.php | 
| LINE: 198 | 
| CALL: p_master->add_mod_info() | 
|   | 
| FILE: [ROOT]/adm/index.php | 
| LINE: 71 | 
| CALL: p_master->list_modules()
 | 

