MDL-63836 course: No course header images

This feature may be added in future, but for now we are not going to include it.
This commit is contained in:
Damyon Wiese 2018-11-01 14:04:27 +08:00
parent 5160567c5f
commit f41207400b
10 changed files with 10 additions and 87 deletions

View file

@ -2666,12 +2666,6 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2018102900.00);
}
if ($oldversion < 2018102900.01) {
// Show course images by default.
set_config('showcourseimages', 1, 'moodlecourse');
upgrade_main_savepoint(true, 2018102900.01);
}
if ($oldversion < 2018110500.01) {
// Define fields to be added to the 'badge' table.
$tablebadge = new xmldb_table('badge');
@ -2769,5 +2763,13 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2018110500.01);
}
if ($oldversion < 2018110700.01) {
// This config setting added and then removed.
unset_config('showcourseimages', 'moodlecourse');
// Main savepoint reached.
upgrade_main_savepoint(true, 2018110700.01);
}
return true;
}