[BUGFIX] Speed up f:format.currency
authorKilian Hann <khann@fconnection.com>
Fri, 13 Apr 2012 20:09:14 +0000 (22:09 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 22 Jul 2012 22:19:10 +0000 (00:19 +0200)
commite866e8b97b90a35b2d6d9012d043816f77c92d25
treebd4707b78b0d375086deb71b85b8e6278110fcfa
parent7f684b1cd7af0d957557f6f2b91e9a05e218e3a7
[BUGFIX] Speed up f:format.currency

If the children evaluate to an empty string, they will be initialized
with 0.00 which speeds up the performance of number_format()

Change-Id: I43176199a5568943483925472ed1323373cdacd1
Fixes: #34519
Releases: 6.0
Related: #36207
Reviewed-on: http://review.typo3.org/10443
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/fluid/Classes/ViewHelpers/Format/CurrencyViewHelper.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/CurrencyViewHelperTest.php