Преглед изворни кода

fix error after CObjectViewHelper signature change

Olivier Massot пре 2 година
родитељ
комит
ca47e76c5a
1 измењених фајлова са 1 додато и 1 уклоњено
  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'];
         $typoscriptObjectPath = $arguments['typoscriptObjectPath'];
         $currentValueKey = $arguments['currentValueKey'];
         $currentValueKey = $arguments['currentValueKey'];
         $table = $arguments['table'];
         $table = $arguments['table'];
-        $contentObjectRenderer = static::getContentObjectRenderer();
+        $contentObjectRenderer = static::getContentObjectRenderer($renderingContext->getRequest());
         if (!isset($GLOBALS['TSFE']) || !($GLOBALS['TSFE'] instanceof TypoScriptFrontendController)) {
         if (!isset($GLOBALS['TSFE']) || !($GLOBALS['TSFE'] instanceof TypoScriptFrontendController)) {
             static::simulateFrontendEnvironment();
             static::simulateFrontendEnvironment();
         }
         }