Permalink
Browse files

MDL-26892 questions: images lost during upgrade.

This affects questions shared in the system or course category areas of
the question bank.

Thanks to Chris Edwards for working out what was going wrong.
  • Loading branch information...
timhunt committed Jun 15, 2012
1 parent 63e5dde commit 6d94ae68270f5035e710f3b2e25dc93c6996f878
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/db/upgrade.php
View
@@ -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 6d94ae6

Please sign in to comment.