Skip to content
Snippets Groups Projects
Commit efc16fbe authored by Alexander Bias's avatar Alexander Bias
Browse files

Bugfix: The infobanner should not clean the entered HTML code too strictly.

parent 30fba967
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,11 @@ moodle-theme_boost_campus ...@@ -4,6 +4,11 @@ moodle-theme_boost_campus
Changes Changes
------- -------
### Unreleased
* 2021-01-14 - Bugfix: The infobanner should not clean the entered HTML code too strictly.
### Release v3.9-r4 ### Release v3.9-r4
* 2020-11-18 - Change in Moodle release support: * 2020-11-18 - Change in Moodle release support:
......
...@@ -111,7 +111,8 @@ $templatecontext = [ ...@@ -111,7 +111,8 @@ $templatecontext = [
$perpibenable = get_config('theme_boost_campus', 'perpibenable'); $perpibenable = get_config('theme_boost_campus', 'perpibenable');
if ($perpibenable) { if ($perpibenable) {
$perpibcontent = format_text(get_config('theme_boost_campus', 'perpibcontent'), FORMAT_HTML); $formatoptions = array('noclean' => true, 'newlines' => false);
$perpibcontent = format_text(get_config('theme_boost_campus', 'perpibcontent'), FORMAT_HTML, $formatoptions);
// Result of multiselect is a string divided by a comma, so exploding into an array. // Result of multiselect is a string divided by a comma, so exploding into an array.
$perpibshowonpages = explode(",", get_config('theme_boost_campus', 'perpibshowonpages')); $perpibshowonpages = explode(",", get_config('theme_boost_campus', 'perpibshowonpages'));
$perpibcss = get_config('theme_boost_campus', 'perpibcss'); $perpibcss = get_config('theme_boost_campus', 'perpibcss');
...@@ -135,7 +136,8 @@ if ($perpibenable) { ...@@ -135,7 +136,8 @@ if ($perpibenable) {
$timedibenable = get_config('theme_boost_campus', 'timedibenable'); $timedibenable = get_config('theme_boost_campus', 'timedibenable');
if ($timedibenable) { if ($timedibenable) {
$timedibcontent = format_text(get_config('theme_boost_campus', 'timedibcontent'), FORMAT_HTML); $formatoptions = array('noclean' => true, 'newlines' => false);
$timedibcontent = format_text(get_config('theme_boost_campus', 'timedibcontent'), FORMAT_HTML, $formatoptions);
// Result of multiselect is a string divided by a comma, so exploding into an array. // Result of multiselect is a string divided by a comma, so exploding into an array.
$timedibshowonpages = explode(",", get_config('theme_boost_campus', 'timedibshowonpages')); $timedibshowonpages = explode(",", get_config('theme_boost_campus', 'timedibshowonpages'));
$timedibcss = get_config('theme_boost_campus', 'timedibcss'); $timedibcss = get_config('theme_boost_campus', 'timedibcss');
......
...@@ -48,7 +48,8 @@ $templatecontext = [ ...@@ -48,7 +48,8 @@ $templatecontext = [
$perpibenable = get_config('theme_boost_campus', 'perpibenable'); $perpibenable = get_config('theme_boost_campus', 'perpibenable');
if ($perpibenable) { if ($perpibenable) {
$perpibcontent = format_text(get_config('theme_boost_campus', 'perpibcontent'), FORMAT_HTML); $formatoptions = array('noclean' => true, 'newlines' => false);
$perpibcontent = format_text(get_config('theme_boost_campus', 'perpibcontent'), FORMAT_HTML, $formatoptions);
// Result of multiselect is a string divided by a comma, so exploding into an array. // Result of multiselect is a string divided by a comma, so exploding into an array.
$perpibshowonpages = explode(",", get_config('theme_boost_campus', 'perpibshowonpages')); $perpibshowonpages = explode(",", get_config('theme_boost_campus', 'perpibshowonpages'));
$perpibcss = get_config('theme_boost_campus', 'perpibcss'); $perpibcss = get_config('theme_boost_campus', 'perpibcss');
...@@ -67,7 +68,8 @@ if ($perpibenable) { ...@@ -67,7 +68,8 @@ if ($perpibenable) {
$timedibenable = get_config('theme_boost_campus', 'timedibenable'); $timedibenable = get_config('theme_boost_campus', 'timedibenable');
if ($timedibenable) { if ($timedibenable) {
$timedibcontent = format_text(get_config('theme_boost_campus', 'timedibcontent'), FORMAT_HTML); $formatoptions = array('noclean' => true, 'newlines' => false);
$timedibcontent = format_text(get_config('theme_boost_campus', 'timedibcontent'), FORMAT_HTML, $formatoptions);
// Result of multiselect is a string divided by a comma, so exploding into an array. // Result of multiselect is a string divided by a comma, so exploding into an array.
$timedibshowonpages = explode(",", get_config('theme_boost_campus', 'timedibshowonpages')); $timedibshowonpages = explode(",", get_config('theme_boost_campus', 'timedibshowonpages'));
$timedibcss = get_config('theme_boost_campus', 'timedibcss'); $timedibcss = get_config('theme_boost_campus', 'timedibcss');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment