From ee26dfd17b98b3c562563c0d2c49e10164057408 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 18 Jul 2006 11:01:06 +0000 Subject: [PATCH] Bug #6116 - Quiz database upgrade scripts call renamed function by the old name. Merged from MOODLE_16_STABLE. --- mod/quiz/db/mysql.php | 6 +++--- mod/quiz/db/postgres7.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mod/quiz/db/mysql.php b/mod/quiz/db/mysql.php index 2f39b73604..662066c4fb 100644 --- a/mod/quiz/db/mysql.php +++ b/mod/quiz/db/mysql.php @@ -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); } } } diff --git a/mod/quiz/db/postgres7.php b/mod/quiz/db/postgres7.php index 331b21eabf..b4140b83df 100644 --- a/mod/quiz/db/postgres7.php +++ b/mod/quiz/db/postgres7.php @@ -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); } } } -- 2.39.5