* fixed bug #7211: "Start in Module" does not work anymore
* fixed check for wrong implementation of toolbarItem interface
* renamed typo3/css/verticalmenu.css to modulemenu.css
+ * changed the way how javascritp and css files needed to be referenced when adding them to backend.php, now relative to typo3/
2008-01-19 Stanislas Rolland <stanislas.rolland@fructifor.ca>
$jsFileAdded = false;
//TODO add more checks if neccessary
- if(file_exists(t3lib_div::resolveBackPath(PATH_site.$javascriptFile))) {
-
- if(t3lib_div::isFirstPartOfStr($javascriptFile, 'typo3/')) {
- $javascriptFile = substr($javascriptFile, 6); // make relative to typo3/
- }
-
+ if(file_exists(t3lib_div::resolveBackPath(PATH_typo3.$javascriptFile))) {
$this->jsFiles[] = $javascriptFile;
$jsFileAdded = true;
}
$cssFileAdded = false;
//TODO add more checks if neccessary
- if(file_exists(t3lib_div::resolveBackPath(PATH_site.$cssFile))) {
-
- if(t3lib_div::isFirstPartOfStr($cssFile, 'typo3/')) {
- $cssFile = substr($cssFile, 6); // make relative to typo3/
- }
-
+ if(file_exists(t3lib_div::resolveBackPath(PATH_typo3.$cssFile))) {
// prevent overwriting existing css files
if(empty($this->cssFiles[$cssFileName])) {
$this->cssFiles[$cssFileName] = $cssFile;