blocks MDL-22311 Fixed page layout for course/modedit.php

For future note and all those who read CVS commit messages calls to set pagelayout MUST come before any mforms instantiations.
This commit is contained in:
Sam Hemelryk 2010-05-06 03:39:12 +00:00
parent a8eeee8cc2
commit ae2fa74f95

View File

@ -196,6 +196,7 @@ if (!empty($type)) { //TODO: hopefully will be removed in 2.0
$pagepath .= 'mod';
}
$PAGE->set_pagetype($pagepath);
$PAGE->set_pagelayout('admin');
$modmoodleform = "$CFG->dirroot/mod/$module->name/mod_form.php";
if (file_exists($modmoodleform)) {
@ -578,7 +579,6 @@ if ($mform->is_cancelled()) {
$PAGE->set_title($streditinga);
$PAGE->set_focuscontrol($mform->focus());
$PAGE->set_cacheable(false);
$PAGE->set_pagelayout('admin');
echo $OUTPUT->header();
if (!empty($cm->id)) {