[TASK] Remove leftover code for PHP locallang files 44/50644/2
authorWouter Wolters <typo3@wouterwolters.nl>
Sun, 13 Nov 2016 14:58:34 +0000 (15:58 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Tue, 15 Nov 2016 08:42:39 +0000 (09:42 +0100)
The PHP parser is removed, so we can drop the value from the default
list of available file extensions.

We do not need to check for the php file anymore in the
AbstractFunctionModule class.

Resolves: #78681
Releases: master
Change-Id: I25ea50c7a615374849394298a8b87e7bbf50a8d3
Reviewed-on: https://review.typo3.org/50644
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Daniel Windloff <daniel.jc.windloff@googlemail.com>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/backend/Classes/Module/AbstractFunctionModule.php
typo3/sysext/core/Classes/Localization/LanguageStore.php

index 1929729..35b50ef 100644 (file)
@@ -212,7 +212,6 @@ abstract class AbstractFunctionModule
             && (
                 @is_file(($this->thisPath . '/' . $this->localLangFile))
                 || @is_file(($this->thisPath . '/' . substr($this->localLangFile, 0, -4) . '.xml'))
-                || @is_file(($this->thisPath . '/' . substr($this->localLangFile, 0, -4) . '.php'))
             )
         ) {
             $LOCAL_LANG = $this->getLanguageService()->includeLLFile($this->thisPath . '/' . $this->localLangFile, false);
index 7a9068a..85f535e 100644 (file)
@@ -65,7 +65,7 @@ class LanguageStore implements \TYPO3\CMS\Core\SingletonInterface
         if (isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['lang']['format']['priority']) && trim($GLOBALS['TYPO3_CONF_VARS']['SYS']['lang']['format']['priority']) !== '') {
             $this->supportedExtensions = GeneralUtility::trimExplode(',', $GLOBALS['TYPO3_CONF_VARS']['SYS']['lang']['format']['priority']);
         } else {
-            $this->supportedExtensions = ['xlf', 'xml', 'php'];
+            $this->supportedExtensions = ['xlf', 'xml'];
         }
     }