* Added prefix to relative file reference in @import style sheet
authorKasper Skårhøj <kasper@typo3.org>
Mon, 26 Apr 2004 15:34:16 +0000 (15:34 +0000)
committerKasper Skårhøj <kasper@typo3.org>
Mon, 26 Apr 2004 15:34:16 +0000 (15:34 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@240 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_pagegen.php

index 69dfbb6..8017713 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2004-04-26  Kasper Skårhøj,,,  <kasper@typo3.com>
 
+       * Added prefix to relative file reference in @import style sheet 
+
+2004-04-26  Kasper Skårhøj,,,  <kasper@typo3.com>
+
        * Fixed bug where DB mounts for a user which has been deleted would still show up in the page tree.
 
 2004-04-26  Kasper Skårhøj,,,  <kasper@typo3.com>
index b3fc9c6..6740180 100755 (executable)
@@ -462,9 +462,12 @@ function linkTo_UnCryptMailto(s)   {       //
                        reset($GLOBALS['TSFE']->pSetup['includeCSS.']);
                        while(list($k2,$iCSSfile)=each($GLOBALS['TSFE']->pSetup['includeCSS.']))        {
                                if (!is_array($iCSSfile))       {
-                                       $ss=$GLOBALS['TSFE']->tmpl->getFileName($iCSSfile);
+                                       $ss = $GLOBALS['TSFE']->tmpl->getFileName($iCSSfile);
                                        if ($ss) {
                                                if ($GLOBALS['TSFE']->pSetup['includeCSS.'][$k2.'.']['import']) {
+                                                       if (substr($ss,0,1)!='/')       {       // To fix MSIE 6 that cannot handle these as relative paths (according to Ben v Ende)
+                                                               $ss = t3lib_div::dirname(t3lib_div::getIndpEnv('SCRIPT_NAME')).'/'.$ss;
+                                                       }
                                                        $GLOBALS['TSFE']->content.='
        <style type="text/css">
        <!--