[BUGFIX] Make extensionName parameter optional for LocalizationUtility::translate() 41/52741/6
authorXavier Perseguers <xavier@typo3.org>
Tue, 9 May 2017 10:33:24 +0000 (12:33 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Thu, 6 Jul 2017 13:26:08 +0000 (15:26 +0200)
commitc1fb7a320b2d9ffaf0b0750310c4d245c0e141dd
treed745db3f27587d78a0fe03fbd76f10175ac17bbd
parent4a7c92f21a45e9d1a893f77d8c820f71da8454d9
[BUGFIX] Make extensionName parameter optional for LocalizationUtility::translate()

This patch prevents a PHP warning when second parameter of the method is not provided.
The extensionName is indeed optional since a fully qualified reference (starting with
"LLL:" may be provided as key.

Resolves: #81168
Releases: master, 8.7
Change-Id: I69145eb9379533b323696354d508b54bdbe4bd51
Reviewed-on: https://review.typo3.org/52741
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Henrik Elsner <helsner@dfau.de>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/extbase/Classes/Utility/LocalizationUtility.php
typo3/sysext/extbase/Tests/Unit/Utility/LocalizationUtilityTest.php