diff --git a/module/VuFind/src/VuFind/I18n/Translator/Loader/ExtendedIni.php b/module/VuFind/src/VuFind/I18n/Translator/Loader/ExtendedIni.php index 1d55af81822cb55c1906660c306eea5724c3605d..e2253244e00efe0df67a6d7a3e6be372e241a309 100644 --- a/module/VuFind/src/VuFind/I18n/Translator/Loader/ExtendedIni.php +++ b/module/VuFind/src/VuFind/I18n/Translator/Loader/ExtendedIni.php @@ -165,7 +165,10 @@ class ExtendedIni implements FileLoaderInterface $data = false; foreach ($this->pathStack as $path) { if (file_exists($path . '/' . $filename)) { - $current = $this->reader->getTextDomain($path . '/' . $filename); + // Load current file with parent data, if necessary: + $current = $this->loadParentData( + $this->reader->getTextDomain($path . '/' . $filename) + ); if ($data === false) { $data = $current; } else { @@ -177,8 +180,7 @@ class ExtendedIni implements FileLoaderInterface throw new InvalidArgumentException("Ini file '{$filename}' not found"); } - // Load parent data, if necessary: - return $this->loadParentData($data); + return $data; } /**