$adminroot = admin_get_root(); // need all settings
admin_externalpage_setup('upgradesettings'); // now hidden page
+$PAGE->set_generaltype('maintenance');
// now we'll deal with the case that the admin has submitted the form with new settings
if ($data = data_submitted() and confirm_sesskey()) {
// Find the appropriate page template, based on $this->page->generaltype.
$templatefile = $this->page->theme->template_for_page($this->page->generaltype);
+
if ($templatefile) {
// Render the template.
$template = $this->render_page_template($templatefile);
if (empty($this->contenttype)) {
debugging('The layout template did not call $OUTPUT->doctype()');
- $this->doctype();
+ $header = $this->doctype() . $header;
}
+
send_headers($this->contenttype, $this->page->cacheable);
+
$this->opencontainers->push('header/footer', $footer);
$this->page->set_state(moodle_page::STATE_IN_BODY);
+
return $header . $this->skip_link_target();
}