Skip to content

Commit

Permalink
MDL-26892 questions: images lost during upgrade.
Browse files Browse the repository at this point in the history
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 authored and danpoltawski committed Jun 18, 2012
1 parent 1cdcf60 commit 74919fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/db/upgrade.php
Expand Up @@ -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;
Expand Down

0 comments on commit 74919fa

Please sign in to comment.