From 4cac26a67de0d143218bb47acd2ea33f27ac2c58 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Wed, 23 Jul 2008 03:16:00 +0000 Subject: [PATCH] MDL-15565, fix bug of maintenance mode alert reminder --- lib/weblib.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 749228d5064..799a4f53777 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2493,10 +2493,6 @@ function print_header ($title='', $heading='', $navigation='', $focus='', $button = ' '; } - if (!$menu and $navigation) { - if (empty($CFG->loginhttps)) { - $wwwroot = $CFG->wwwroot; - } else { if (file_exists($CFG->dataroot.'/'.SITEID.'/maintenance.html')) { $button = ''.get_string('maintenancemode', 'admin').' '.$button; if(!empty($title)) { @@ -2505,6 +2501,11 @@ function print_header ($title='', $heading='', $navigation='', $focus='', $title .= get_string('maintenancemode', 'admin'); } + if (!$menu and $navigation) { + if (empty($CFG->loginhttps)) { + $wwwroot = $CFG->wwwroot; + } else { + $wwwroot = str_replace('http:','https:',$CFG->wwwroot); } $menu = user_login_string($COURSE);