Bug #6116 - Quiz database upgrade scripts call renamed function by the old name. Merged from MOODLE_16_STABLE.

This commit is contained in:
tjhunt
2006-07-18 11:01:06 +00:00
parent 1ec4315887
commit ee26dfd17b
2 changed files with 6 additions and 6 deletions
+3 -3
View 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);
}
}
}
+3 -3
View 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);
}
}
}