mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-56251 format_weeks: fixed broken upgrade when using CLI
This commit is contained in:
parent
7a37f761bc
commit
50bbb5b254
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user