MDL-56168 theme_boost: Cannot use a null value for colour pickers

This commit is contained in:
Frédéric Massart 2016-10-04 10:21:01 +02:00
parent d4566644f6
commit b90843c821
2 changed files with 3 additions and 3 deletions

View File

@ -43,11 +43,11 @@ if ($ADMIN->fulltree) {
$page->add($setting);
// Variable $body-color.
// We do not set a default value because the default colour should come from the preset.
// We use an empty default value because the default colour should come from the preset.
$name = 'theme_boost/brandcolor';
$title = get_string('brandcolor', 'theme_boost');
$description = get_string('brandcolor_desc', 'theme_boost');
$setting = new admin_setting_configcolourpicker($name, $title, $description, null, null, false);
$setting = new admin_setting_configcolourpicker($name, $title, $description, '');
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);

View File

@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2016100400.00; // YYYYMMDD = weekly release date of this DEV branch.
$version = 2016100400.01; // YYYYMMDD = weekly release date of this DEV branch.
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.