Skip to content

Commit

Permalink
MDL-45774 navigation: Version bump and upgrade.php edit.
Browse files Browse the repository at this point in the history
  • Loading branch information
abgreeve committed Apr 13, 2015
1 parent 7588cc6 commit 7232452
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions lib/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4304,18 +4304,18 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2015040700.01);
}

if ($oldversion < 2015040800.01) {
if ($oldversion < 2015040900.01) {
// Add "My grades" to the user menu.
$oldconfig = get_config('core', 'customusermenuitems');
if (strpos("mygrades,grades|/grade/report/mygrades.php|grades", $oldconfig) === false) {
$newconfig = "mygrades,grades|/grade/report/mygrades.php|grades\n" . $CFG->customusermenuitems;
set_config('customusermenuitems', $newconfig);
}

upgrade_main_savepoint(true, 2015040800.01);
upgrade_main_savepoint(true, 2015040900.01);
}

if ($oldversion < 2015040800.02) {
if ($oldversion < 2015040900.02) {
// Update the default user menu (add preferences, remove my files and my badges).
$oldconfig = get_config('core', 'customusermenuitems');

Expand All @@ -4334,17 +4334,17 @@ function xmldb_main_upgrade($oldversion) {
$newconfig = preg_replace('/(\r\n)+/', "\n", $newconfig);
set_config('customusermenuitems', $newconfig);

upgrade_main_savepoint(true, 2015040800.02);
upgrade_main_savepoint(true, 2015040900.02);
}

if ($oldversion < 2015040800.03) {
if ($oldversion < 2015040900.03) {
// Change the setting to the new default.
$oldconfig = get_config('core', 'defaulthomepage');
if ($oldconfig == HOMEPAGE_SITE) {
set_config('defaulthomepage', HOMEPAGE_MY);
}

upgrade_main_savepoint(true, 2015040800.03);
upgrade_main_savepoint(true, 2015040900.03);
}


Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

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

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

Expand Down

0 comments on commit 7232452

Please sign in to comment.