Skip to content

Commit

Permalink
[BUGFIX] add missing array subkey for file
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Berger committed Apr 13, 2018
1 parent 954defb commit 098a359
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/ContentObject/MediaContentObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']]);
Expand Down

0 comments on commit 098a359

Please sign in to comment.