Skip to content

Commit

Permalink
Merge pull request FriendsOfTYPO3#2 from bernhardberger/master
Browse files Browse the repository at this point in the history
[BUGFIX] add missing array subkey for file
  • Loading branch information
merzilla authored Apr 16, 2018
2 parents 2161911 + 098a359 commit a78ed93
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 a78ed93

Please sign in to comment.