MDL-28055 quiz_upgrade_very_old_question_sessions bit does not work because of missing includes.

This commit is contained in:
Tim Hunt 2011-06-28 10:57:50 +01:00
parent 7fde489dae
commit 8818c826ea
2 changed files with 4 additions and 0 deletions

View file

@ -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();

View file

@ -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