Skip to content

Commit

Permalink
Bugfix: Static pages unnecessarily cleaned configured content, solves m…
Browse files Browse the repository at this point in the history
  • Loading branch information
abias authored Dec 4, 2023
1 parent 394ed63 commit ebb71bc
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 9 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pages/aboutus.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
2 changes: 1 addition & 1 deletion pages/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
2 changes: 1 addition & 1 deletion pages/help.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
2 changes: 1 addition & 1 deletion pages/imprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
2 changes: 1 addition & 1 deletion pages/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
2 changes: 1 addition & 1 deletion pages/offers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
2 changes: 1 addition & 1 deletion pages/page1.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
2 changes: 1 addition & 1 deletion pages/page2.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
2 changes: 1 addition & 1 deletion pages/page3.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit ebb71bc

Please sign in to comment.