[TASK] Deprecate AbstractFunctionModule->incLocalLang() 09/52209/4
authorBenni Mack <benni@typo3.org>
Tue, 28 Mar 2017 10:17:14 +0000 (12:17 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Tue, 28 Mar 2017 12:31:02 +0000 (14:31 +0200)
commit24753662e4bf18d4b53d8d5a45daaf8307927a7a
tree59b3b627ba2b74b9e749f9b4a48f2379980e8f88
parent888a1c46714cd14fd78810a3f7c7d7afede8b68f
[TASK] Deprecate AbstractFunctionModule->incLocalLang()

Loading a locallang.xlf inside the abstract function module now uses the regular
$GLOBALS['LANG']->includeLLFile() of the current file, instead of doing a manual
check on .xml and .php extensions, which the LanguageService/LanguageFactory
is taking care of anyway.

The PHP method incLocalLang() and the now not necessarily needed $thisPath
are therefore marked as deprecated.

Resolves: #80511
Releases: master
Change-Id: I3a9d27bf794a4cd8c1f2d31ed9250d634aa68ee8
Reviewed-on: https://review.typo3.org/52209
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/backend/Classes/Module/AbstractFunctionModule.php
typo3/sysext/core/Documentation/Changelog/master/Deprecation-80511-AbstractFunctionModule-incLocalLangAndThisPath.rst [new file with mode: 0644]