Skip to content

Commit

Permalink
Update RenderViewHelper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
georgringer authored Jul 31, 2017
1 parent 28587cc commit dfaac74
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Classes/ViewHelpers/RenderViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,9 @@ public static function renderStatic(array $arguments, \Closure $renderChildrenCl
$files = $fileCollector->getFiles();
$as = $arguments['as'];

if (VersionNumberUtility::convertVersionNumberToInteger(TYPO3_branch) >= VersionNumberUtility::convertVersionNumberToInteger('9.0')) {
$renderingContext->getVariableProvider()->add($as, $files);
$output = $renderChildrenClosure();
$renderingContext->getVariableProvider()->remove($as);
} else {
$renderingContext->getTemplateVariableContainer()->templateVariableContainer->add($as, $files);
$output = $renderChildrenClosure();
$renderingContext->getTemplateVariableContainer()->templateVariableContainer->remove($as);
}
$renderingContext->getVariableProvider()->add($as, $files);
$output = $renderChildrenClosure();
$renderingContext->getVariableProvider()->remove($as);

return $output;
}
Expand Down

0 comments on commit dfaac74

Please sign in to comment.