[BUGFIX] Make extensionName parameter optional for LocalizationUtility::translate() 19/53419/2
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 14:26:11 +0000 (16:26 +0200)
commit8f93ac54f7a81f83b8ad14a42b7d482c3d76b15d
treecd697429535c4695f85891df7e2c2818d3317044
parent4e756929de8761500cf3d6846e7c793ec98c9782
[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/53419
Tested-by: TYPO3com <no-reply@typo3.com>
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