Move ISO files to Resource/Private/Data/
This commit is contained in:
parent
3c58e7b246
commit
61b949c464
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue