Merge branch 'MDL-50309_m29' of git://github.com/markn86/moodle into MOODLE_29_STABLE

This commit is contained in:
Dan Poltawski
2015-06-01 10:26:50 +01:00
+1 -1
View File
@@ -4308,7 +4308,7 @@ function xmldb_main_upgrade($oldversion) {
// 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;
$newconfig = "mygrades,grades|/grade/report/mygrades.php|grades\n" . $oldconfig;
set_config('customusermenuitems', $newconfig);
}