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...
1 parent 1cdcf60 commit 74919fa156283a32427f1f9f699aa11f75426b40 @timhunt timhunt committed with danpoltawski Jun 15, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/db/upgrade.php
View
3 lib/db/upgrade.php
@@ -5034,7 +5034,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 74919fa

Please sign in to comment.