Skip to content
Browse files

Merge branch 'MDL-26892_22' of git://github.com/timhunt/moodle into M…

…OODLE_22_STABLE
  • Loading branch information...
2 parents d9a92e8 + 6d94ae6 commit 5e1fc324de394636a9c8d37fa944b0b872f1ab82 @danpoltawski danpoltawski committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/db/upgrade.php
View
3 lib/db/upgrade.php
@@ -4992,7 +4992,8 @@ function xmldb_main_upgrade($oldversion) {
break;
case CONTEXT_COURSECAT :
case CONTEXT_SYSTEM :
- $context = get_system_context();
+ // Stored in the front-page course.
+ $context = get_context_instance(CONTEXT_COURSE, get_site()->id);
break;
default :
continue;

0 comments on commit 5e1fc32

Please sign in to comment.
Something went wrong with that request. Please try again.