$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;
$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);