diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 81f4dd6e42b..c6e525fabd3 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -2420,6 +2420,18 @@ function xmldb_main_upgrade($oldversion) { // Main savepoint reached. upgrade_main_savepoint(true, 2016111900.00); } + if ($oldversion < 2016111900.02) { + + // Change the existing site level admin and settings blocks to be requiredbytheme which means they won't show in boost. + $context = context_system::instance(); + $params = array('blockname' => 'settings', 'parentcontextid' => $context->id); + $DB->set_field('block_instances', 'requiredbytheme', 1, $params); + + $params = array('blockname' => 'navigation', 'parentcontextid' => $context->id); + $DB->set_field('block_instances', 'requiredbytheme', 1, $params); + // Main savepoint reached. + upgrade_main_savepoint(true, 2016111900.02); + } return true; } diff --git a/version.php b/version.php index bd60e050558..6d7ff0c5623 100644 --- a/version.php +++ b/version.php @@ -29,7 +29,7 @@ defined('MOODLE_INTERNAL') || die(); -$version = 2016111900.00; // YYYYMMDD = weekly release date of this DEV branch. +$version = 2016111900.02; // YYYYMMDD = weekly release date of this DEV branch. // RR = release increments - 00 in DEV branches. // .XX = incremental changes.