mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
MDL-31392 qeupgradehelper partial upgrade support broken since 2.2
This commit is contained in:
parent
269c884874
commit
e2a4d8f9d0
1 changed files with 3 additions and 2 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue