Skip to content

Commit

Permalink
MDL-59140 core: upgrade 'navcourselimit' if set to old default value
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjnelson committed Jun 13, 2017
1 parent bb3956e commit 8d9e621
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions lib/db/upgrade.php
Expand Up @@ -2547,5 +2547,15 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2016120503.01);
}

if ($oldversion < 2016120503.09) {
// Check if the value of 'navcourselimit' is set to the old default value, if so, change it to the new default.
if ($CFG->navcourselimit == 20) {
set_config('navcourselimit', 10);
}

// Main savepoint reached.
upgrade_main_savepoint(true, 2016120503.09);
}

return true;
}
2 changes: 1 addition & 1 deletion version.php
Expand Up @@ -29,7 +29,7 @@

defined('MOODLE_INTERNAL') || die();

$version = 2016120503.08; // YYYYMMDD = weekly release date of this DEV branch.
$version = 2016120503.09; // YYYYMMDD = weekly release date of this DEV branch.
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.

Expand Down

0 comments on commit 8d9e621

Please sign in to comment.