[TASK] Make Condition ViewHelpers fully static compileable
[Packages/TYPO3.CMS.git] / typo3 / sysext / fluid / Classes / ViewHelpers / IfViewHelper.php
index 0dcb7c3..2db8da4 100644 (file)
@@ -91,11 +91,6 @@ class IfViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionVie
         * @api
         */
        public function render($condition) {
-               if ($condition) {
-                       return $this->renderThenChild();
-               } else {
-                       return $this->renderElseChild();
-               }
+               return parent::render();
        }
-
 }