Skip to content
Snippets Groups Projects
Commit 47c4ee26 authored by Kathrin Osswald's avatar Kathrin Osswald
Browse files

Improved SCSS settings to be used with admin_setting_scsscode that validates...

Improved SCSS settings to be used with admin_setting_scsscode that validates the code before saving.
parent af5c535a
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,10 @@ moodle-theme_boost_campus_child
Changes
-------
### Unreleased
* 2020-06-09 - Improved SCSS settings to be used with admin_setting_scsscode that validates the code before saving.
### v3.8-r1
* 2020-03-25 - Prepare compatibility for Moodle 3.8.
......
......@@ -131,7 +131,7 @@ if ($ADMIN->fulltree) {
$name = 'theme_boost_campus_child/scsspre';
$title = get_string('rawscsspre', 'theme_boost', null, true);
$description = get_string('rawscsspre_desc', 'theme_boost', null, true);
$setting = new admin_setting_configtextarea($name, $title, $description, '', PARAM_RAW);
$setting = new admin_setting_scsscode($name, $title, $description, '', PARAM_RAW);
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
......@@ -139,7 +139,7 @@ if ($ADMIN->fulltree) {
$name = 'theme_boost_campus_child/scss';
$title = get_string('rawscss', 'theme_boost', null, true);
$description = get_string('rawscss_desc', 'theme_boost', null, true);
$setting = new admin_setting_configtextarea($name, $title, $description, '', PARAM_RAW);
$setting = new admin_setting_scsscode($name, $title, $description, '', PARAM_RAW);
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment