MDL-15565, fix bug of maintenance mode alert reminder

This commit is contained in:
dongsheng 2008-07-23 03:18:02 +00:00
parent 65e8e9dc0a
commit a2353e9b0b

View File

@ -2401,6 +2401,14 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
$button = ' ';
}
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)) {
$title .= ' - ';
}
$title .= get_string('maintenancemode', 'admin');
}
if (!$menu and $navigation) {
if (empty($CFG->loginhttps)) {
$wwwroot = $CFG->wwwroot;
@ -2497,14 +2505,6 @@ function print_header ($title='', $heading='', $navigation='', $focus='',
$title = format_string($title); // fix for MDL-8582
$title = str_replace('"', '&quot;', $title);
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)) {
$title .= ' - ';
}
$title .= get_string('maintenancemode', 'admin');
}
// Create class and id for this page
page_id_and_class($pageid, $pageclass);