Commit e97cdc26 authored by Wouter Wolters's avatar Wouter Wolters Committed by Andreas Fernandez
Browse files

[TASK] Remove leftover code for PHP locallang files

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: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Daniel Windloff's avatarDaniel Windloff <daniel.jc.windloff@googlemail.com>
Reviewed-by: default avatarMorton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: default avatarMorton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
parent f86c04e4
......@@ -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);
......
......@@ -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'];
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment