浏览代码

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'];
         $currentValueKey = $arguments['currentValueKey'];
         $table = $arguments['table'];
-        $contentObjectRenderer = static::getContentObjectRenderer();
+        $contentObjectRenderer = static::getContentObjectRenderer($renderingContext->getRequest());
         if (!isset($GLOBALS['TSFE']) || !($GLOBALS['TSFE'] instanceof TypoScriptFrontendController)) {
             static::simulateFrontendEnvironment();
         }