Browse Source

fix error after CObjectViewHelper signature change

Olivier Massot 2 years ago
parent
commit
ca47e76c5a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ot_templating/Classes/ViewHelpers/CObjectViewHelper.php

+ 1 - 1
ot_templating/Classes/ViewHelpers/CObjectViewHelper.php

@@ -64,7 +64,7 @@ class CObjectViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\CObjectViewHelper {
         $typoscriptObjectPath = $arguments['typoscriptObjectPath'];
         $currentValueKey = $arguments['currentValueKey'];
         $table = $arguments['table'];
-        $contentObjectRenderer = static::getContentObjectRenderer();
+        $contentObjectRenderer = static::getContentObjectRenderer($renderingContext->getRequest());
         if (!isset($GLOBALS['TSFE']) || !($GLOBALS['TSFE'] instanceof TypoScriptFrontendController)) {
             static::simulateFrontendEnvironment();
         }