Project

General

Profile

Bug #22729 » rtehtmlarea_bugfix_14494_trunk.patch

Administrator Admin, 2010-05-27 10:35

View differences:

typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php (copie de travail)
* =======================================
*/
// Get the path to this extension:
$this->extHttpPath = t3lib_extMgm::extRelPath($this->ID);
$this->extHttpPath = $this->TCEform->backPath . t3lib_extMgm::extRelPath($this->ID);
// Get the site URL
$this->siteURL = t3lib_div::getIndpEnv('TYPO3_SITE_URL');
// Get the host URL
......
$key = $this->registeredPlugins[$pluginId]->getExtensionKey();
$this->addStyleSheet(
'rtehtmlarea-plugin-' . $pluginId . '-skin',
($this->is_FE() ? t3lib_extMgm::siteRelPath($key) : t3lib_extMgm::extRelPath($key)) . $pathToSkin
($this->is_FE() ? t3lib_extMgm::siteRelPath($key) : $this->TCEform->backPath . t3lib_extMgm::extRelPath($key)) . $pathToSkin
);
}
}
......
if ($this->is_FE()) {
return ($GLOBALS['TSFE']->absRefPrefix ? $GLOBALS['TSFE']->absRefPrefix : '') . t3lib_div::createVersionNumberedFilename($relativeFilename);
} else {
return t3lib_div::createVersionNumberedFilename('../' . $relativeFilename);
return t3lib_div::createVersionNumberedFilename('../' . $this->TCEform->backPath . $relativeFilename);
}
}
/**
......
} else {
if ($compress) {
$compressor = t3lib_div::makeInstance('t3lib_compressor');
$filename = $compressor->compressJsFile('../' . $relativeFilename);
$filename = $compressor->compressJsFile('../' . $this->TCEform->backPath . $relativeFilename);
} else {
$filename = t3lib_div::createVersionNumberedFilename('../' . $relativeFilename);
$filename = t3lib_div::createVersionNumberedFilename('../' . $this->TCEform->backPath . $relativeFilename);
}
}
return $filename;
......
list($extKey,$local) = explode('/',substr($filename,4),2);
$newFilename = '';
if (strcmp($extKey,'') && t3lib_extMgm::isLoaded($extKey) && strcmp($local,'')) {
$newFilename = ($this->is_FE() ? t3lib_extMgm::siteRelPath($extKey) : t3lib_extMgm::extRelPath($extKey)) . $local;
$newFilename = ($this->is_FE() ? t3lib_extMgm::siteRelPath($extKey) : $this->TCEform->backPath . t3lib_extMgm::extRelPath($extKey)) . $local;
}
} elseif (substr($filename,0,1) != '/') {
$newFilename = ($this->is_FE() ? '' : '../') . $filename;
$newFilename = ($this->is_FE() ? '' : '../' . $this->TCEform->backPath) . $filename;
} else {
$newFilename = ($this->is_FE() ? '' : '../') . substr($filename, 1);
$newFilename = ($this->is_FE() ? '' : '../' . $this->TCEform->backPath) . substr($filename, 1);
}
return $newFilename;
}
(1-1/3)