From 8d37ee0d67066ed0b2ab9df8798dc485f1ca2a29 Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Tue, 19 Apr 2005 22:03:17 +0000 Subject: [PATCH] Backporting Howard's commit fixing bug #2963 where course dir missing from HEAD --- mod/quiz/export.php | 3 +++ mod/quiz/import.php | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/mod/quiz/export.php b/mod/quiz/export.php index 3cf2ba0edde..32116e2836d 100644 --- a/mod/quiz/export.php +++ b/mod/quiz/export.php @@ -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"); diff --git a/mod/quiz/import.php b/mod/quiz/import.php index 9d8a9c936b5..22275b22ff3 100644 --- a/mod/quiz/import.php +++ b/mod/quiz/import.php @@ -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");