MDL-31392 qeupgradehelper partial upgrade support broken since 2.2

This commit is contained in:
Tim Hunt 2012-01-26 16:31:44 +00:00
parent 269c884874
commit e2a4d8f9d0

View file

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