[BUGFIX] EXT:mediace does not resolve EXT:paths for swf includes 05/40605/2
authorBenjamin Mack <benni@typo3.org>
Thu, 25 Jun 2015 05:19:13 +0000 (07:19 +0200)
committerAlexander Opitz <opitz.alexander@googlemail.com>
Thu, 25 Jun 2015 07:08:14 +0000 (09:08 +0200)
Due to the moving of the swf player files from typo3/contrib
to EXT:mediace one file does not resolve the EXT: syntax yet
making the mediace swf player not working in CMS7.

The patch resolves the path to swfobject.js when given with
a EXT: syntax.

Resolves: #67740
Releases: master
Change-Id: If33385c79bbd4d2944480b55f695cdfc1533d6fd
Reviewed-on: http://review.typo3.org/40605
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
typo3/sysext/mediace/Classes/ContentObject/ShockwaveFlashObjectContentObject.php

index b514f7e..5c1455a 100644 (file)
@@ -46,6 +46,9 @@ class ShockwaveFlashObjectContentObject extends \TYPO3\CMS\Frontend\ContentObjec
                // Add SWFobject js-file
                $pageRenderer->addJsFile($this->getPathToLibrary('flashmedia/swfobject/swfobject.js'));
                $player = isset($typeConf['player.']) ? $this->cObj->stdWrap($typeConf['player'], $typeConf['player.']) : $typeConf['player'];
+               if (strpos($player, 'EXT:') === 0) {
+                       $player = $prefix . $GLOBALS['TSFE']->tmpl->getFileName($player);
+               }
                $installUrl = isset($conf['installUrl.']) ? $this->cObj->stdWrap($conf['installUrl'], $conf['installUrl.']) : $conf['installUrl'];
                if (!$installUrl) {
                        $installUrl = $prefix . $this->getPathToLibrary('flashmedia/swfobject/expressInstall.swf');