mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-13 18:04:06 +02:00
[ticket/11574] Find language files in update/new before throwing an error
PHPBB3-11574
This commit is contained in:
@ -590,6 +590,18 @@ class phpbb_user extends phpbb_session
|
|||||||
$language_filename = $lang_path . $this->lang_name . '/' . $filename . '.' . $phpEx;
|
$language_filename = $lang_path . $this->lang_name . '/' . $filename . '.' . $phpEx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!file_exists($language_filename))
|
||||||
|
{
|
||||||
|
// File was not found, try to find it in update directory
|
||||||
|
$orig_language_filename = $language_filename;
|
||||||
|
$language_filename = str_replace('language/', 'install/update/new/language/', $language_filename);
|
||||||
|
if (!file_exists($language_filename))
|
||||||
|
{
|
||||||
|
// Not found either, go back to the original file name
|
||||||
|
$language_filename = $orig_language_filename;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!file_exists($language_filename))
|
if (!file_exists($language_filename))
|
||||||
{
|
{
|
||||||
global $config;
|
global $config;
|
||||||
|
Reference in New Issue
Block a user