From 743a6f780ed42b121cdf8cae34290d1afc805b4e Mon Sep 17 00:00:00 2001 From: Alexander Bias Date: Mon, 4 Dec 2023 21:06:03 +0100 Subject: [PATCH] Bugfix: Static pages unnecessarily cleaned configured content, solves #486. (#487) --- CHANGES.md | 2 ++ pages/aboutus.php | 2 +- pages/contact.php | 2 +- pages/help.php | 2 +- pages/imprint.php | 2 +- pages/maintenance.php | 2 +- pages/offers.php | 2 +- pages/page1.php | 2 +- pages/page2.php | 2 +- pages/page3.php | 2 +- 10 files changed, 11 insertions(+), 9 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index af127d7c724..892b6192772 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,6 +5,8 @@ Changes ------- ### Unreleased + +* 2023-12-01 - Bugfix: Static pages unnecessarily cleaned configured content, solves #486. * 2023-11-23 - Bugfix: Add background color to OAuth2 login button, solves #473. ### v4.3-r2 diff --git a/pages/aboutus.php b/pages/aboutus.php index 33649967dba..9a36b5e1211 100644 --- a/pages/aboutus.php +++ b/pages/aboutus.php @@ -69,7 +69,7 @@ echo $OUTPUT->heading(theme_boost_union_get_staticpage_pagetitle('aboutus')); // Output aboutus content. -echo format_text($config->aboutuscontent); +echo format_text($config->aboutuscontent, FORMAT_MOODLE, ['trusted' => true, 'noclean' => true]); // Finish page. echo $OUTPUT->footer(); diff --git a/pages/contact.php b/pages/contact.php index 34d4a762c5a..cedc42c4d11 100644 --- a/pages/contact.php +++ b/pages/contact.php @@ -69,7 +69,7 @@ echo $OUTPUT->heading(theme_boost_union_get_staticpage_pagetitle('contact')); // Output contact page content. -echo format_text($config->contactcontent); +echo format_text($config->contactcontent, FORMAT_MOODLE, ['trusted' => true, 'noclean' => true]); // Finish page. echo $OUTPUT->footer(); diff --git a/pages/help.php b/pages/help.php index 5e5cea1c23b..cd4e4e94ed3 100644 --- a/pages/help.php +++ b/pages/help.php @@ -69,7 +69,7 @@ echo $OUTPUT->heading(theme_boost_union_get_staticpage_pagetitle('help')); // Output help page content. -echo format_text($config->helpcontent); +echo format_text($config->helpcontent, FORMAT_MOODLE, ['trusted' => true, 'noclean' => true]); // Finish page. echo $OUTPUT->footer(); diff --git a/pages/imprint.php b/pages/imprint.php index 86a8a51c72a..37a5a1d0ad1 100644 --- a/pages/imprint.php +++ b/pages/imprint.php @@ -69,7 +69,7 @@ echo $OUTPUT->heading(theme_boost_union_get_staticpage_pagetitle('imprint')); // Output imprint content. -echo format_text($config->imprintcontent); +echo format_text($config->imprintcontent, FORMAT_MOODLE, ['trusted' => true, 'noclean' => true]); // Finish page. echo $OUTPUT->footer(); diff --git a/pages/maintenance.php b/pages/maintenance.php index 0f5ef76e572..ab9e0497462 100644 --- a/pages/maintenance.php +++ b/pages/maintenance.php @@ -69,7 +69,7 @@ echo $OUTPUT->heading(theme_boost_union_get_staticpage_pagetitle('maintenance')); // Output maintenance content. -echo format_text($config->maintenancecontent); +echo format_text($config->maintenancecontent, FORMAT_MOODLE, ['trusted' => true, 'noclean' => true]); // Finish page. echo $OUTPUT->footer(); diff --git a/pages/offers.php b/pages/offers.php index 3011405151a..55743448d40 100644 --- a/pages/offers.php +++ b/pages/offers.php @@ -69,7 +69,7 @@ echo $OUTPUT->heading(theme_boost_union_get_staticpage_pagetitle('offers')); // Output offers content. -echo format_text($config->offerscontent); +echo format_text($config->offerscontent, FORMAT_MOODLE, ['trusted' => true, 'noclean' => true]); // Finish page. echo $OUTPUT->footer(); diff --git a/pages/page1.php b/pages/page1.php index 572184489a9..acda2a3821c 100644 --- a/pages/page1.php +++ b/pages/page1.php @@ -69,7 +69,7 @@ echo $OUTPUT->heading(theme_boost_union_get_staticpage_pagetitle('page1')); // Output page1 content. -echo format_text($config->page1content); +echo format_text($config->page1content, FORMAT_MOODLE, ['trusted' => true, 'noclean' => true]); // Finish page. echo $OUTPUT->footer(); diff --git a/pages/page2.php b/pages/page2.php index fa3e7eec6a9..fa2c468ab69 100644 --- a/pages/page2.php +++ b/pages/page2.php @@ -69,7 +69,7 @@ echo $OUTPUT->heading(theme_boost_union_get_staticpage_pagetitle('page2')); // Output page2 content. -echo format_text($config->page2content); +echo format_text($config->page2content, FORMAT_MOODLE, ['trusted' => true, 'noclean' => true]); // Finish page. echo $OUTPUT->footer(); diff --git a/pages/page3.php b/pages/page3.php index 8f339b296ce..480b2523ba8 100644 --- a/pages/page3.php +++ b/pages/page3.php @@ -69,7 +69,7 @@ echo $OUTPUT->heading(theme_boost_union_get_staticpage_pagetitle('page3')); // Output page3 content. -echo format_text($config->page3content); +echo format_text($config->page3content, FORMAT_MOODLE, ['trusted' => true, 'noclean' => true]); // Finish page. echo $OUTPUT->footer();