]> git.mjollnir.org Git - moodle.git/commitdiff
Bug #5820 - IE returns unsecure items with SSL on login; merged from MOODLE_16_STABLE
authorskodak <skodak>
Thu, 6 Jul 2006 15:53:46 +0000 (15:53 +0000)
committerskodak <skodak>
Thu, 6 Jul 2006 15:53:46 +0000 (15:53 +0000)
theme/cornflower/header.html
theme/formal_white/header.html
theme/standardlogo/header.html

index 95997bf50b67e18c2610844fae4d71d3c2f68e52..2461dfe3b38d5fdec78075560135c58db6fb98b2 100644 (file)
@@ -8,7 +8,7 @@
     <?php include("$CFG->javascript"); ?>
 </head>
 
-<body background="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/images/bg.gif"   <?php
+<body background="<?php echo $CFG->httpswwwroot.'/theme/'.current_theme() ?>/images/bg.gif"   <?php
     echo " $bodytags";
     if ($focus) {
         echo " onload=\"setfocus()\"";
@@ -25,7 +25,7 @@
 
     <tr>
         <td>
-        <table background="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/images/headerbg.jpg"   width="100%" height="112"  cellpadding="0" cellspacing="0" border="0">
+        <table background="<?php echo $CFG->httpswwwroot.'/theme/'.current_theme() ?>/images/headerbg.jpg"   width="100%" height="112"  cellpadding="0" cellspacing="0" border="0">
 
         <tr>
 
@@ -44,7 +44,7 @@
         <tr>
         <td>
 
-<table background="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/images/headerbg.jpg"   width="100%" height="112"  cellpadding="0" cellspacing="0" border="0">
+<table background="<?php echo $CFG->httpswwwroot.'/theme/'.current_theme() ?>/images/headerbg.jpg"   width="100%" height="112"  cellpadding="0" cellspacing="0" border="0">
         <tr>
         <td valign="top"><?php echo $heading ?></td>
         <td align="right" sty class="headermain"le="padding-right:5px" valign="top" class="headerhomemenu"><?php echo $menu ?></td>
@@ -64,7 +64,7 @@
       <td align="right" width="20" valign="top"><?php echo $button; ?></td>
     </tr>
   </table>
-  <img src="<?php echo $CFG->wwwroot?>/pix/spacer.gif" alt="" height="5" width="1" /><br />
+  <img src="<?php echo $CFG->httpswwwroot?>/pix/spacer.gif" alt="" height="5" width="1" /><br />
 
 <?php } else if ($heading) { // If no navigation, but a heading, then print a line  
 ?>
index e57fee1b58d49edbbb800f6b86d90b188c95be5b..7ab4d12bda59447ed2d781b45a22d70dd350254f 100644 (file)
       if ($home) {  // This is what gets printed on the home page only
 ?>
     <div id="header-home" class="clearfix">
-        <h1 class="headermain"><img alt='Moodle' src='<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/logo.jpg' /></h1>
+        <h1 class="headermain"><img alt='Moodle' src='<?php echo $CFG->httpswwwroot.'/theme/'.current_theme() ?>/logo.jpg' /></h1>
         <div class="headermenu"><?php echo $menu ?></div>
     </div>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading 
 ?>
     <div id="header" class="clearfix">
-        <h1 class="headermain"><img alt='Moodle' src='<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/logo_small.jpg' /></h1>
+        <h1 class="headermain"><img alt='Moodle' src='<?php echo $CFG->httpswwwroot.'/theme/'.current_theme() ?>/logo_small.jpg' /></h1>
         <div class="headermenu"><?php echo $menu ?></div>
     </div>
 <?php } ?>
index 06311a5c9f547e3778cbc9c164c7f0a78ae49ee5..df9836c89c367c869eef7cee4c1a97c5db39c1db 100644 (file)
 
 <?php if ($home) {  // This is what gets printed on the home page only  
       if (file_exists($CFG->dirroot.'/logo.jpg')) {
-          $standardlogo = $CFG->wwwroot.'/logo.jpg';
+          $standardlogo = $CFG->httpswwwroot.'/logo.jpg';
       } else if (file_exists($CFG->dirroot.'/logo.gif')) {
-          $standardlogo = $CFG->wwwroot.'/logo.gif';
+          $standardlogo = $CFG->httpswwwroot.'/logo.gif';
       } else if (file_exists($CFG->dataroot.'/1/logo.jpg')) {
           if (empty($CFG->slasharguments)) {
-              $standardlogo = $CFG->wwwroot.'/file.php?file=/1/logo.jpg';
+              $standardlogo = $CFG->httpswwwroot.'/file.php?file=/1/logo.jpg';
           } else {
-              $standardlogo = $CFG->wwwroot.'/file.php/1/logo.jpg';
+              $standardlogo = $CFG->httpswwwroot.'/file.php/1/logo.jpg';
           }
       } else if (file_exists($CFG->dataroot.'/1/logo.gif')) {
           if (empty($CFG->slasharguments)) {
-              $standardlogo = $CFG->wwwroot.'/file.php?file=/1/logo.gif';
+              $standardlogo = $CFG->httpswwwroot.'/file.php?file=/1/logo.gif';
           } else {
-              $standardlogo = $CFG->wwwroot.'/file.php/1/logo.gif';
+              $standardlogo = $CFG->httpswwwroot.'/file.php/1/logo.gif';
           }
       } else {
-          $standardlogo = $CFG->wwwroot.'/theme/'.current_theme().'/logo.gif';
+          $standardlogo = $CFG->httpswwwroot.'/theme/'.current_theme().'/logo.gif';
       }
       
       //Accessibility: warning: ALT text will need editing if logo changes. 'headermain' is now H1.