Skip to content

Commit

Permalink
Bug #5820 - IE returns unsecure items with SSL on login; merged from …
Browse files Browse the repository at this point in the history
…MOODLE_16_STABLE
  • Loading branch information
skodak committed Jul 6, 2006
1 parent 0fade9e commit 10ab3ef
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions theme/cornflower/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -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()\"";
Expand All @@ -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>

Expand All @@ -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>
Expand All @@ -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
?>
Expand Down
4 changes: 2 additions & 2 deletions theme/formal_white/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
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 } ?>
Expand Down
14 changes: 7 additions & 7 deletions theme/standardlogo/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@

<?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.
Expand Down

0 comments on commit 10ab3ef

Please sign in to comment.