MDL-40971 grade: Importing Outcomes breaks Clean theme.

This commit is contained in:
Mary Evans 2013-10-30 23:46:47 +00:00
parent 68291f2d57
commit de957f5848
2 changed files with 2 additions and 1 deletions

View File

@ -33,6 +33,7 @@ $action = optional_param('action', '', PARAM_ALPHA);
$scope = optional_param('scope', 'custom', PARAM_ALPHA);
$PAGE->set_url('/grade/edit/outcome/import.php', array('courseid' => $courseid));
$PAGE->set_pagelayout('admin');
/// Make sure they can even access this course
if ($courseid) {

View File

@ -38,7 +38,7 @@ class import_outcomes_form extends moodleform {
$mform->addElement('hidden', 'action', 'upload');
$mform->setType('action', PARAM_ALPHANUMEXT);
$mform->addElement('hidden', 'courseid', $PAGE->course->id);
$mform->setType('id', PARAM_INT);
$mform->setType('courseid', PARAM_INT);
$scope = array();
if (($PAGE->course->id > 1) && has_capability('moodle/grade:manage', context_system::instance())) {