Skip to content

Commit 4ea439c

Browse files
author
Thomas Hunziker
committed
Check if language file is for selected language before processing.
1 parent ee81859 commit 4ea439c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

administrator/components/com_languages/src/Model/StringsModel.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ public function refresh()
9191
// Parse all found ini files and add the strings to the database cache.
9292
foreach ($files as $file)
9393
{
94+
// Only process if language file is for selected language
95+
if (strpos($file, $language, strlen($base)) === false)
96+
{
97+
continue;
98+
}
99+
94100
$strings = LanguageHelper::parseIniFile($file);
95101

96102
if ($strings)

0 commit comments

Comments
 (0)