Project

General

Profile

Bug #21973 » hardcoded-typo3.patch

Administrator Admin, 2010-01-16 20:32

View differences:

typo3/sysext/cms/tslib/class.tslib_content.php (Arbeitskopie)
$typeConf = $conf[$conf['type'] . '.'];
//add SWFobject js-file
$GLOBALS['TSFE']->getPageRenderer()->addJsFile('typo3/contrib/flashmedia/swfobject/swfobject.js');
$GLOBALS['TSFE']->getPageRenderer()->addJsFile(TYPO3_mainDir . 'contrib/flashmedia/swfobject/swfobject.js');
$player = $this->stdWrap($conf[$conf['type'] . '.']['player'], $conf[$conf['type'] . '.']['player.']);
$installUrl = $conf['installUrl'] ? $conf['installUrl'] : $prefix . 'typo3/contrib/flashmedia/swfobject/expressInstall.swf';
$installUrl = $conf['installUrl'] ? $conf['installUrl'] : $prefix . TYPO3_mainDir . 'contrib/flashmedia/swfobject/expressInstall.swf';
$filename = $this->stdWrap($conf['file'], $conf['file.']);
if ($filename && $conf['forcePlayer']) {
if (strpos($filename, '://') !== FALSE) {
......
$typeConf = $conf[$conf['type'] . '.'];
//add QTobject js-file
$GLOBALS['TSFE']->getPageRenderer()->addJsFile('typo3/contrib/flashmedia/qtobject/qtobject.js');
$GLOBALS['TSFE']->getPageRenderer()->addJsFile(TYPO3_mainDir . 'contrib/flashmedia/qtobject/qtobject.js');
$replaceElementIdString = uniqid('mmqt');
$GLOBALS['TSFE']->register['MMQTID'] = $replaceElementIdString;
$qtObject = 'QTObject' . $replaceElementIdString;
typo3/sysext/cms/tslib/class.tslib_pagegen.php (Arbeitskopie)
/** @var $pageRenderer t3lib_PageRenderer */
$pageRenderer = $GLOBALS['TSFE']->getPageRenderer();
$pageRenderer->backPath = 'typo3/';
$pageRenderer->backPath = TYPO3_mainDir;
if ($GLOBALS['TSFE']->config['config']['moveJsFromHeaderToFooter']) {
$pageRenderer->enableMoveJsFromHeaderToFooter();
(1-1/3)