N°9553 - Fix setup issue due to wrong method params testing

This commit is contained in:
v-dumas
2026-05-28 10:49:45 +02:00
parent 7c49909dd9
commit cbbcc489e0

View File

@@ -374,11 +374,6 @@ abstract class ModuleInstallerAPI
if (substr_count($sFilePattern, '{{language_code}}') !== 1) {
throw new CoreUnexpectedValue("LoadLocalizedData expects sFilePattern to contain the exact placeholder '{{language_code}}' exactly once");
}
$sParentDirectory = dirname($sFilePattern);
if (!is_dir($sParentDirectory)) {
throw new CoreUnexpectedValue("LoadLocalizedData expects sFilePattern parent directory to exist, got '{$sParentDirectory}'");
}
}
private static function IsValidLocalizedDataVersion(string $sVersion): bool