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

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

parent 7dd87ccd
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,10 @@ moodle-theme_boost_campus
Changes
-------
### Unreleased
* 2021-01-14 - Bugfix: The infobanner should not clean the entered HTML code too strictly.
### Release v3.10-r1
* 2020-11-28 - Adjusted occurrences of the .row-fluid grid class to .row after the BS4Alpha compatibility layer has been removed in theme Boost core.
......
......@@ -111,7 +111,8 @@ $templatecontext = [
$perpibenable = get_config('theme_boost_campus', '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.
$perpibshowonpages = explode(",", get_config('theme_boost_campus', 'perpibshowonpages'));
$perpibcss = get_config('theme_boost_campus', 'perpibcss');
......@@ -135,7 +136,8 @@ if ($perpibenable) {
$timedibenable = get_config('theme_boost_campus', '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.
$timedibshowonpages = explode(",", get_config('theme_boost_campus', 'timedibshowonpages'));
$timedibcss = get_config('theme_boost_campus', 'timedibcss');
......
......@@ -48,7 +48,8 @@ $templatecontext = [
$perpibenable = get_config('theme_boost_campus', '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.
$perpibshowonpages = explode(",", get_config('theme_boost_campus', 'perpibshowonpages'));
$perpibcss = get_config('theme_boost_campus', 'perpibcss');
......@@ -67,7 +68,8 @@ if ($perpibenable) {
$timedibenable = get_config('theme_boost_campus', '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.
$timedibshowonpages = explode(",", get_config('theme_boost_campus', 'timedibshowonpages'));
$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