From 098a359f9b5fb795ac7415ef259ba81168c84154 Mon Sep 17 00:00:00 2001 From: Bernhard Berger Date: Fri, 13 Apr 2018 15:10:36 +0200 Subject: [PATCH] [BUGFIX] add missing array subkey for file --- Classes/ContentObject/MediaContentObject.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/ContentObject/MediaContentObject.php b/Classes/ContentObject/MediaContentObject.php index 17d49cc..1cb59c0 100644 --- a/Classes/ContentObject/MediaContentObject.php +++ b/Classes/ContentObject/MediaContentObject.php @@ -111,9 +111,9 @@ public function render($conf = array()) $linkService = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\LinkHandling\LinkService::class); if ($conf['type'] === 'video') { - $fileinfo = \TYPO3\CMS\Core\Utility\GeneralUtility::split_fileref($linkService->resolve($conf['file'])->getIdentifier()); + $fileinfo = \TYPO3\CMS\Core\Utility\GeneralUtility::split_fileref($linkService->resolve($conf['file'])['file']->getIdentifier()); } else { - $fileinfo = \TYPO3\CMS\Core\Utility\GeneralUtility::split_fileref($linkService->resolve($conf['audioFallback'])->getIdentifier()); + $fileinfo = \TYPO3\CMS\Core\Utility\GeneralUtility::split_fileref($linkService->resolve($conf['audioFallback'])['file']->getIdentifier()); } if (in_array($fileinfo['fileext'], $handler)) { $renderType = strtolower($conf['fileExtHandler.'][$fileinfo['fileext']]);