mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-28055 quiz_upgrade_very_old_question_sessions bit does not work because of missing includes.
This commit is contained in:
parent
7fde489dae
commit
8818c826ea
2 changed files with 4 additions and 0 deletions
|
@ -562,6 +562,8 @@ function xmldb_quiz_upgrade($oldversion) {
|
||||||
');
|
');
|
||||||
|
|
||||||
if ($oldattempts) {
|
if ($oldattempts) {
|
||||||
|
require_once($CFG->dirroot . '/mod/quiz/db/upgradelib.php');
|
||||||
|
|
||||||
$pbar = new progress_bar('q15upgrade');
|
$pbar = new progress_bar('q15upgrade');
|
||||||
$pbar->create();
|
$pbar->create();
|
||||||
$a = new stdClass();
|
$a = new stdClass();
|
||||||
|
|
|
@ -26,6 +26,8 @@
|
||||||
|
|
||||||
defined('MOODLE_INTERNAL') || die();
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
|
require_once($CFG->dirroot . '/mod/quiz/locallib.php');
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Upgrade states for an attempt to Moodle 1.5 model
|
* Upgrade states for an attempt to Moodle 1.5 model
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue