MDL-56168 theme_boost: Cannot use a null value for colour pickers
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
+1
-1
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user