mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-15565, fix bug of maintenance mode alert reminder
This commit is contained in:
parent
65e8e9dc0a
commit
a2353e9b0b
@ -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('"', '"', $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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user