[TASK] Revert default value of $argument in TranslateViewHelper 11/36711/2
authorGeorg Ringer <georg.ringer@gmail.com>
Fri, 6 Feb 2015 10:04:19 +0000 (11:04 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 6 Feb 2015 18:31:02 +0000 (19:31 +0100)
The default value of $arguments changed from NULL to array() which
can lead to warnings. As a solution change it back.

Change-Id: I9b3ff56effc84416c7dcbdabf84bb8f1cc2f7378
Resolves: #64901
Releases: master
Reviewed-on: http://review.typo3.org/36711
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Göran Bodenschatz <coding@46halbe.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/fluid/Classes/ViewHelpers/TranslateViewHelper.php

index 02b5699..b8533d5 100644 (file)
@@ -83,7 +83,7 @@ class TranslateViewHelper extends AbstractViewHelper implements CompilableInterf
         * @param string $extensionName UpperCamelCased extension key (for example BlogExample)
         * @return string The translated key or tag body if key doesn't exist
         */
-       public function render($key = NULL, $id = NULL, $default = NULL, $htmlEscape = NULL, array $arguments = array(), $extensionName = NULL) {
+       public function render($key = NULL, $id = NULL, $default = NULL, $htmlEscape = NULL, array $arguments = NULL, $extensionName = NULL) {
                return self::renderStatic(
                        array(
                                'key' => $key,