Multiple css bugfix
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 13 Jan 2002 18:01:45 +0000 (18:01 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 13 Jan 2002 18:01:45 +0000 (18:01 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2131 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/page_header.php

index ef84f2d..7463dc9 100644 (file)
 // Always set up the language before calling these functions
 function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE ) {
 
-    global $theme_css, $custom_css;
-    
+    global $theme_css, $custom_css, $base_uri;
+
     echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">' .
          "\n\n<HTML>\n<HEAD>\n";
-    
+
     if ( !isset( $custom_css ) || $custom_css == 'none' ) {
         if ($theme_css != '') {
             echo "<LINK REL=\"stylesheet\" TYPE=\"text/css\" HREF=\"$theme_css\">\n";
         }
     } else {
-        echo "<LINK REL=\"stylesheet\" TYPE=\"text/css\" HREF=\"../themes/css/$custom_css\">\n";
+        echo '<LINK REL="stylesheet" TYPE="text/css" HREF="' .
+             $base_uri . "themes/css/$custom_css\">\n";
     }
     
     if( $do_hook ) {