During upgrade from pre- 1.5, set the theme to standardwhite so it works

This commit is contained in:
moodler
2005-04-15 14:57:38 +00:00
parent 72778c9a5a
commit 35b04d5e0f
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -915,6 +915,8 @@ function main_upgrade($oldversion=0) {
table_column('course', '', 'theme', 'varchar', '50', '', '', '', 'lang');
table_column('groups', '', 'theme', 'varchar', '50', '', '', '', 'lang');
table_column('user', '', 'theme', 'varchar', '50', '', '', '', 'lang');
set_config('theme', 'standardwhite'); // Reset to a known good theme
}
if ($oldversion < 2005021700) {