mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Merge pull request #3706 from marc1706/ticket/13942
[ticket/13942] Check if path to language file contains language path
This commit is contained in:
commit
e59b96e968
1 changed files with 1 additions and 1 deletions
|
@ -637,7 +637,7 @@ class user extends \phpbb\session
|
|||
$lang_path = $this->lang_path;
|
||||
}
|
||||
|
||||
if (strpos($phpbb_root_path . $filename, $lang_path . $this->lang_name . '/') === 0)
|
||||
if (strpos($phpbb_root_path . $filename, $lang_path) === 0)
|
||||
{
|
||||
$language_filename = $phpbb_root_path . $filename;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue