Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…OODLE_22_STABLE
  • Loading branch information...
commit 5e1fc324de394636a9c8d37fa944b0b872f1ab82 2 parents d9a92e8 + 6d94ae6
@danpoltawski danpoltawski authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.