[TASK] Allow media elements to be previewed in backend 90/43390/3
authorBenjamin Mack <benni@typo3.org>
Thu, 17 Sep 2015 10:23:06 +0000 (12:23 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Thu, 17 Sep 2015 10:46:22 +0000 (12:46 +0200)
Resolves: #69912
Releases: master
Change-Id: I9d0f92dbfb2ca1f419b563ea2ee2356eed107dcb
Reviewed-on: http://review.typo3.org/43390
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/backend/Classes/Utility/BackendUtility.php

index 69f2680..a9dbd71 100755 (executable)
@@ -1696,8 +1696,8 @@ class BackendUtility {
                                        continue;
                                }
 
-                               // Web image
-                               if (GeneralUtility::inList($GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'], $fileReferenceObject->getExtension())) {
+                               // Preview web image or media elements
+                               if (GeneralUtility::inList($GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] . ',' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['mediafile_ext'], $fileReferenceObject->getExtension())) {
                                        $processedImage = $fileObject->process(ProcessedFile::CONTEXT_IMAGECROPSCALEMASK, array(
                                                                                'width' => $sizeParts[0],
                                                                                'height' => $sizeParts[1] . 'c',