Browse Source

Move ISO files to Resource/Private/Data/

tags/v3.0.0-beta.1
Sebastian Meyer 3 years ago
parent
commit
61b949c464
  1. 4
      Classes/Common/Helper.php
  2. 0
      Resources/Private/Data/iso-639-1.xml
  3. 0
      Resources/Private/Data/iso-639-2b.xml

4
Classes/Common/Helper.php

@ -381,9 +381,9 @@ class Helper {
// Analyze code and set appropriate ISO table.
$isoCode = strtolower(trim($code));
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)) {
$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 {
// No ISO code, return unchanged.
return $code;

0
Resources/Private/ISO-639/iso-639-1.xml → Resources/Private/Data/iso-639-1.xml

0
Resources/Private/ISO-639/iso-639-2b.xml → Resources/Private/Data/iso-639-2b.xml

Loading…
Cancel
Save