MDL-15565, fix bug of maintenance mode alert reminder
This commit is contained in:
+5
-4
@@ -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 = '<a href="'.$CFG->wwwroot.'/admin/maintenance.php">'.get_string('maintenancemode', 'admin').'</a> '.$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);
|
||||
|
||||
Reference in New Issue
Block a user