Bug #19040 ยป 20080630_absrefprefix.patch
typo3/sysext/cms/tslib/class.tslib_fe.php (working copy) | ||
---|---|---|
}
|
||
/**
|
||
* Substitute the path's to files in the fileadmin/ and media/ folder like icons used in static_template of TypoScript
|
||
* Substitute the path's to files in the fileadmin/, /typoconf/ext/ and media/ folder like icons used in static_template of TypoScript
|
||
* Works on $this->content
|
||
*
|
||
* @return void
|
||
... | ... | |
function setAbsRefPrefix() {
|
||
if ($this->absRefPrefix) {
|
||
$this->content = str_replace('"media/', '"'.t3lib_extMgm::siteRelPath('cms').'tslib/media/', $this->content);
|
||
$this->content = str_replace('"fileadmin/', '"'.$this->absRefPrefix.'fileadmin/', $this->content);
|
||
$this->content = str_replace('"typo3conf/ext/', '"'.$this->absRefPrefix.'typo3conf/ext/', $this->content);
|
||
$this->content = str_replace('"'.$GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir'], '"'.$this->absRefPrefix.$GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir'], $this->content);
|
||
}
|
||
}
|
||
... | ... | |
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/class.tslib_fe.php']);
|
||
}
|
||
?>
|
||
?>
|