Index: typo3/sysext/cms/tslib/content/class.tslib_content_shockwaveflashobject.php =================================================================== --- typo3/sysext/cms/tslib/content/class.tslib_content_shockwaveflashobject.php (revision 9214) +++ typo3/sysext/cms/tslib/content/class.tslib_content_shockwaveflashobject.php (revision ) @@ -51,15 +51,32 @@ } ; - $typeConf = $conf[$conf['type'] . '.']; + $type = isset($conf['type.']) + ? $this->cObj->stdWrap($conf['type'], $conf['type.']) + : $conf['type']; + $typeConf = $conf[$type . '.']; //add SWFobject js-file $GLOBALS['TSFE']->getPageRenderer()->addJsFile(TYPO3_mainDir . 'contrib/flashmedia/swfobject/swfobject.js'); - $player = $this->cObj->stdWrap($conf[$conf['type'] . '.']['player'], $conf[$conf['type'] . '.']['player.']); - $installUrl = $conf['installUrl'] ? $conf['installUrl'] : $prefix . TYPO3_mainDir . 'contrib/flashmedia/swfobject/expressInstall.swf'; - $filename = $this->cObj->stdWrap($conf['file'], $conf['file.']); - if ($filename && $conf['forcePlayer']) { + $player = isset($typeConf['player.']) + ? $this->cObj->stdWrap($typeConf['player'], $typeConf['player.']) + : $typeConf['player']; + + $installUrl = isset($conf['installUrl.']) + ? $this->cObj->stdWrap($conf['installUrl'], $conf['installUrl.']) + : $conf['installUrl']; + if(!$installUrl) { + $installUrl = $prefix . TYPO3_mainDir . 'contrib/flashmedia/swfobject/expressInstall.swf'; + } + + $filename = isset($conf['file.']) + ? $this->cObj->stdWrap($conf['file'], $conf['file.']) + : $conf['file']; + $forcePlayer = isset($conf['forcePlayer.']) + ? $this->cObj->stdWrap($conf['forcePlayer'], $conf['forcePlayer.']) + : $conf['forcePlayer']; + if ($filename && $forcePlayer) { if (strpos($filename, '://') !== FALSE) { $conf['flashvars.']['file'] = $filename; } else { @@ -68,7 +85,6 @@ } else { $conf['flashvars.']['file'] = str_repeat('../', substr_count($player, '/')) . $filename; } - } } else { $player = $filename; @@ -106,7 +122,9 @@ } $attributes = 'var attributes = ' . (count($conf['attributes.']) ? json_encode($conf['attributes.']) : '{}') . ';'; - $flashVersion = $this->cObj->stdWrap($conf['flashVersion'], $conf['flashVersion.']); + $flashVersion = isset($conf['flashVersion.']) + ? $this->cObj->stdWrap($conf['flashVersion'], $conf['flashVersion.']) + : $conf['flashVersion']; if (!$flashVersion) { $flashVersion = '9'; } @@ -114,19 +132,30 @@ $replaceElementIdString = uniqid('mmswf'); $GLOBALS['TSFE']->register['MMSWFID'] = $replaceElementIdString; - $alternativeContent = $this->cObj->stdWrap($conf['alternativeContent'], $conf['alternativeContent.']); + $alternativeContent = isset($conf['alternativeContent.']) + ? $this->cObj->stdWrap($conf['alternativeContent'], $conf['alternativeContent.']) + : $conf['alternativeContent']; - $layout = $this->cObj->stdWrap($conf['layout'], $conf['layout.']); + $layout = isset($conf['layout.']) + ? $this->cObj->stdWrap($conf['layout'], $conf['layout.']) + : $conf['layout']; $layout = str_replace('###ID###', $replaceElementIdString, $layout); $layout = str_replace('###SWFOBJECT###', '