]> git.mjollnir.org Git - moodle.git/commitdiff
Bug #6116 - Quiz database upgrade scripts call renamed function by the old name....
authortjhunt <tjhunt>
Tue, 18 Jul 2006 11:01:06 +0000 (11:01 +0000)
committertjhunt <tjhunt>
Tue, 18 Jul 2006 11:01:06 +0000 (11:01 +0000)
mod/quiz/db/mysql.php
mod/quiz/db/postgres7.php

index 2f39b7360440d392caf8605a58f5840827497f3e..662066c4fb11b1e7335d9fa429b6a2c24fdbc7d8 100644 (file)
@@ -829,10 +829,10 @@ function quiz_upgrade($oldversion) {
             //Iterate over courses
             foreach ($courses as $course) {
                 //If the course doesn't exist, orphan category found!
-                //Process it with quiz_delete_course(). It will do all the hard work.
+                //Process it with question_delete_course(). It will do all the hard work.
                 if (!record_exists('course', 'id', $course->id)) {
-                    require_once("$CFG->dirroot/mod/quiz/lib.php");
-                    quiz_delete_course($course);
+                    require_once("$CFG->libdir/questionlib.php ");
+                    question_delete_course($course);
                 }
             }
         }
index 331b21eabf25d5de81ba5a2849f83547855102f4..b4140b83df54edbb536cdcfc4f53e629dad41c99 100644 (file)
@@ -901,10 +901,10 @@ function quiz_upgrade($oldversion) {
             //Iterate over courses
             foreach ($courses as $course) {
                 //If the course doesn't exist, orphan category found!
-                //Process it with quiz_delete_course(). It will do all the hard work.
+                //Process it with question_delete_course(). It will do all the hard work.
                 if (!record_exists('course', 'id', $course->id)) {
-                    require_once("$CFG->dirroot/mod/quiz/lib.php");
-                    quiz_delete_course($course);
+                    require_once("$CFG->libdir/questionlib.php ");
+                    question_delete_course($course);
                 }
             }
         }