[ticket/11031] Fix missing variable lang_file from code conversion

PHPBB3-11031
This commit is contained in:
Joas Schilling 2013-10-25 13:10:33 +02:00
parent 19380a9b08
commit 157de2d80d

View file

@ -1431,8 +1431,9 @@ function phpbb_attachment_extension_group_name()
while ($lang_dir = $db->sql_fetchfield('lang_dir'))
{
$lang_dir = basename($lang_dir);
$lang_file = $phpbb_root_path . 'language/' . $lang_dir . '/acp/attachments.' . $phpEx;
if (!file_exists($phpbb_root_path . 'language/' . $lang_dir . '/acp/attachments.' . $phpEx))
if (!file_exists($lang_file))
{
continue;
}