소스 검색

Multiple css bugfix

philippe_mingo 23 년 전
부모
커밋
f0f4437b38
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 4
      functions/page_header.php

+ 5 - 4
functions/page_header.php

@@ -14,17 +14,18 @@
 // Always set up the language before calling these functions
 // Always set up the language before calling these functions
 function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE ) {
 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">' .
     echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">' .
          "\n\n<HTML>\n<HEAD>\n";
          "\n\n<HTML>\n<HEAD>\n";
-    
+
     if ( !isset( $custom_css ) || $custom_css == 'none' ) {
     if ( !isset( $custom_css ) || $custom_css == 'none' ) {
         if ($theme_css != '') {
         if ($theme_css != '') {
             echo "<LINK REL=\"stylesheet\" TYPE=\"text/css\" HREF=\"$theme_css\">\n";
             echo "<LINK REL=\"stylesheet\" TYPE=\"text/css\" HREF=\"$theme_css\">\n";
         }
         }
     } else {
     } 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 ) {
     if( $do_hook ) {