mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
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:
parent
a8eeee8cc2
commit
ae2fa74f95
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user