MDL-56251 format_weeks: fixed broken upgrade when using CLI

This commit is contained in:
Mark Nelson 2017-05-05 12:55:06 +08:00
parent 7a37f761bc
commit 50bbb5b254

View File

@ -33,6 +33,7 @@ defined('MOODLE_INTERNAL') || die();
function xmldb_format_weeks_upgrade($oldversion) {
global $CFG, $DB;
require_once($CFG->dirroot . '/course/format/weeks/lib.php');
require_once($CFG->dirroot . '/course/format/weeks/db/upgradelib.php');
if ($oldversion < 2017020200) {