Permalink
Browse files

Backporting Howard's commit fixing bug #2963 where course dir missing…

… from HEAD
  • Loading branch information...
1 parent 4498266 commit 8d37ee0d67066ed0b2ab9df8798dc485f1ca2a29 mjollnir_ committed Apr 19, 2005
Showing with 7 additions and 0 deletions.
  1. +3 −0 mod/quiz/export.php
  2. +4 −0 mod/quiz/import.php
View
@@ -21,6 +21,9 @@
error("Only the teacher can export quiz questions!");
}
+ // ensure the files area exists for this course
+ make_upload_directory( "$course->id" );
+
$strexportquestions = get_string("exportquestions", "quiz");
$strquestions = get_string("questions", "quiz");
View
@@ -21,6 +21,10 @@
error("Only the teacher can import quiz questions!");
}
+
+ // ensure the files area exists for this course
+ make_upload_directory( "$course->id" );
+
$strimportquestions = get_string("importquestions", "quiz");
$strquestions = get_string("questions", "quiz");

0 comments on commit 8d37ee0

Please sign in to comment.