Fixing typo causing some (a few) sites to break on upgrade. Credit
authorstronk7 <stronk7>
Thu, 12 Apr 2007 15:34:47 +0000 (15:34 +0000)
committerstronk7 <stronk7>
Thu, 12 Apr 2007 15:34:47 +0000 (15:34 +0000)
goes to Rafa Gutierrez. MDL-9316

Merged from MOODLE_18_STABLE

mod/quiz/db/mysql.php
mod/quiz/db/postgres7.php

index 53bcf73273a006704c7254a6f3d754be6e356b56..65dc510d3142f862fda09033d0747301bd7711a7 100644 (file)
@@ -842,7 +842,7 @@ function quiz_upgrade($oldversion) {
                 //If the course doesn't exist, orphan category found!
                 //Process it with question_delete_course(). It will do all the hard work.
                 if (!record_exists('course', 'id', $course->id)) {
-                    require_once("$CFG->libdir/questionlib.php ");
+                    require_once("$CFG->libdir/questionlib.php");
                     $success = $success && question_delete_course($course);
                 }
             }
index d7b460e7bf1f95d9525d84b050fc7a5694d42865..8e9ead52c88e7eead143019ba87b31fa7df69202 100644 (file)
@@ -922,7 +922,7 @@ function quiz_upgrade($oldversion) {
                 //If the course doesn't exist, orphan category found!
                 //Process it with question_delete_course(). It will do all the hard work.
                 if (!record_exists('course', 'id', $course->id)) {
-                    require_once("$CFG->libdir/questionlib.php ");
+                    require_once("$CFG->libdir/questionlib.php");
                     $success = $success && question_delete_course($course);
                 }
             }