33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-12-31 21:51:46 +00:00

fix paths for language dirs

This commit is contained in:
Denis Ryabov 2021-02-18 15:13:51 +03:00
parent 070b22caae
commit e833785494

View File

@ -142,11 +142,11 @@ class JedcheckerRulesXMLinfo extends JEDcheckerRule
$lookup_lang_dirs[] = 'language/' . $lang_tag; $lookup_lang_dirs[] = 'language/' . $lang_tag;
if (isset($xml->administration->languages['folder'])) if (isset($xml->administration->languages['folder']))
{ {
$lookup_lang_dirs[] = trim($xml->administration->languages['folder'], '/'); $lookup_lang_dirs[] = trim($xml->administration->languages['folder'], '/') . '/' . $lang_tag;
} }
if (isset($xml->languages['folder'])) if (isset($xml->languages['folder']))
{ {
$lookup_lang_dirs[] = trim($xml->languages['folder'], '/'); $lookup_lang_dirs[] = trim($xml->languages['folder'], '/') . '/' . $lang_tag;
} }
$lookup_lang_dirs[] = ''; $lookup_lang_dirs[] = '';
@ -154,7 +154,7 @@ class JedcheckerRulesXMLinfo extends JEDcheckerRule
{ {
$lang_sys_file = $lang_sys_file =
$lang_dir . '/' . $lang_dir . '/' .
($dir === '' ? '' : trim($dir, '/') . '/') . ($dir === '' ? '' : $dir . '/') .
$lang_tag. '.' . $extension . '.sys.ini'; $lang_tag. '.' . $extension . '.sys.ini';
if (is_file($lang_sys_file)) if (is_file($lang_sys_file))
{ {