MDL-44739 theme_more: Force default settings to be set

This commit is contained in:
Frederic Massart
2014-04-02 14:56:44 +08:00
parent e070ffd8ab
commit c682844ae9
2 changed files with 15 additions and 1 deletions
+14
View File
@@ -56,5 +56,19 @@ function xmldb_theme_more_upgrade($oldversion) {
}
if ($oldversion < 2014032401) {
// Set the default settings as they might already be set.
set_config('textcolor', '#333366', 'theme_more');
set_config('linkcolor', '#FF6500', 'theme_more');
set_config('backgroundrepeat', 'repeat', 'theme_more');
set_config('contentbackground', '#FFFFFF', 'theme_more');
set_config('secondarybackground', '#FFFFFF', 'theme_more');
set_config('invert', 1, 'theme_more');
set_config('backgroundimage', '/background.jpg', 'theme_more');
upgrade_plugin_savepoint(true, 2014032401, 'theme', 'more');
}
return true;
}
+1 -1
View File
@@ -24,7 +24,7 @@
defined('MOODLE_INTERNAL') || die;
$plugin->version = 2014032400;
$plugin->version = 2014032401;
$plugin->requires = 2013110500;
$plugin->component = 'theme_more';
$plugin->dependencies = array(