33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-12-29 04:42:36 +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;
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']))
{
$lookup_lang_dirs[] = trim($xml->languages['folder'], '/');
$lookup_lang_dirs[] = trim($xml->languages['folder'], '/') . '/' . $lang_tag;
}
$lookup_lang_dirs[] = '';
@ -154,7 +154,7 @@ class JedcheckerRulesXMLinfo extends JEDcheckerRule
{
$lang_sys_file =
$lang_dir . '/' .
($dir === '' ? '' : trim($dir, '/') . '/') .
($dir === '' ? '' : $dir . '/') .
$lang_tag. '.' . $extension . '.sys.ini';
if (is_file($lang_sys_file))
{