Browse Source

fix error after CObjectViewHelper signature change

Olivier Massot 2 năm trước cách đây
mục cha
commit
ca47e76c5a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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();
         }