mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-56168 theme_boost: Cannot use a null value for colour pickers
This commit is contained in:
parent
d4566644f6
commit
b90843c821
@ -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);
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user