MDL-23984 no coursefile dirs exist any more

This commit is contained in:
Petr Skoda
2010-08-29 10:42:45 +00:00
parent fcab3e647e
commit 81457bef51
2 changed files with 0 additions and 5 deletions
-2
View File
@@ -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');
-3
View File
@@ -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'),