From 773d32a6fcebc87f56b33bdf2df62f1e75ead0d9 Mon Sep 17 00:00:00 2001 From: Benjamin Klix Date: Tue, 23 Feb 2016 16:40:06 +0100 Subject: [PATCH] [FEATURE] Updated getting value of children --- .../Hyphenator/ViewHelpers/Format/HyphenateViewHelper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/Wegmeister/Hyphenator/ViewHelpers/Format/HyphenateViewHelper.php b/Classes/Wegmeister/Hyphenator/ViewHelpers/Format/HyphenateViewHelper.php index 7ab1ea7..c3a02d4 100644 --- a/Classes/Wegmeister/Hyphenator/ViewHelpers/Format/HyphenateViewHelper.php +++ b/Classes/Wegmeister/Hyphenator/ViewHelpers/Format/HyphenateViewHelper.php @@ -152,7 +152,8 @@ public function render($value = NULL, $locale = null) } if ($value === NULL) { - $value = $this->buildRenderChildrenClosure()(); + $closure = $this->buildRenderChildrenClosure(); + $value = $closure(); } if (is_string($value) || (is_object($value) && method_exists($value, '__toString'))) { if ($locale === null) {