Merge branch 'MDL-31392' of git://github.com/timhunt/moodle
authorAparup Banerjee <aparup@moodle.com>
Mon, 30 Jan 2012 06:24:31 +0000 (14:24 +0800)
committerAparup Banerjee <aparup@moodle.com>
Mon, 30 Jan 2012 06:24:31 +0000 (14:24 +0800)
question/engine/upgrade/upgradelib.php

index 7e682f0..8c6e175 100644 (file)
@@ -88,8 +88,9 @@ class question_engine_attempt_upgrader {
         global $CFG, $DB;
 
         // Look to see if the admin has set things up to only upgrade certain attempts.
-        $partialupgradefile = $CFG->dirroot . '/local/qeupgradehelper/partialupgrade.php';
-        $partialupgradefunction = 'local_qeupgradehelper_get_quizzes_to_upgrade';
+        $partialupgradefile = $CFG->dirroot . '/' . $CFG->admin .
+                '/tool/qeupgradehelper/partialupgrade.php';
+        $partialupgradefunction = 'tool_qeupgradehelper_get_quizzes_to_upgrade';
         if (is_readable($partialupgradefile)) {
             include_once($partialupgradefile);
             if (function_exists($partialupgradefunction)) {