Move ISO files to Resource/Private/Data/

This commit is contained in:
Sebastian Meyer 2019-03-16 21:03:32 +01:00
parent 3c58e7b246
commit 61b949c464
3 changed files with 2 additions and 2 deletions

View File

@ -381,9 +381,9 @@ class Helper {
// Analyze code and set appropriate ISO table. // Analyze code and set appropriate ISO table.
$isoCode = strtolower(trim($code)); $isoCode = strtolower(trim($code));
if (preg_match('/^[a-z]{3}$/', $isoCode)) { if (preg_match('/^[a-z]{3}$/', $isoCode)) {
$file = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(self::$extKey).'Resources/Private/ISO-639/iso-639-2b.xml'; $file = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(self::$extKey).'Resources/Private/Data/iso-639-2b.xml';
} elseif (preg_match('/^[a-z]{2}$/', $isoCode)) { } elseif (preg_match('/^[a-z]{2}$/', $isoCode)) {
$file = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(self::$extKey).'Resources/Private/ISO-639/iso-639-1.xml'; $file = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(self::$extKey).'Resources/Private/Data/iso-639-1.xml';
} else { } else {
// No ISO code, return unchanged. // No ISO code, return unchanged.
return $code; return $code;