MDL-23984 no coursefile dirs exist any more
This commit is contained in:
@@ -26,8 +26,6 @@
|
||||
$categoryid = $pagevars['cat'];
|
||||
}
|
||||
|
||||
// ensure the files area exists for this course
|
||||
make_upload_directory("$COURSE->id");
|
||||
list($catid, $catcontext) = explode(',', $pagevars['cat']);
|
||||
if (!$category = $DB->get_record("question_categories", array("id" => $catid, 'contextid' => $catcontext))) {
|
||||
print_error('nocategory','quiz');
|
||||
|
||||
@@ -42,9 +42,6 @@ if ($contexts === null) { // need to get the course from the chosen category
|
||||
$contexts->require_one_edit_tab_cap($edittab);
|
||||
}
|
||||
|
||||
// ensure the files area exists for this course
|
||||
make_upload_directory("$COURSE->id");
|
||||
|
||||
$PAGE->set_url($thispageurl->out());
|
||||
|
||||
$import_form = new question_import_form($thispageurl, array('contexts'=>$contexts->having_one_edit_tab_cap('import'),
|
||||
|
||||
Reference in New Issue
Block a user