Skip to content

Commit

Permalink
MDL-31392 qeupgradehelper partial upgrade support broken since 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Jan 26, 2012
1 parent f6b4ec2 commit 6401b3c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions question/engine/upgrade/upgradelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ protected function get_quiz_ids() {
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)) {
Expand Down

0 comments on commit 6401b3c

Please sign in to comment.