From 43598d0f3489f9d12527a8ae6faa944259f4b816 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Tue, 7 Oct 2025 17:45:16 +0800 Subject: [PATCH 1/3] MDL-86840 forum: Fix heading structure of search form --- public/mod/forum/search.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/mod/forum/search.php b/public/mod/forum/search.php index 321dd94bd80..4f9caa8a1b1 100644 --- a/public/mod/forum/search.php +++ b/public/mod/forum/search.php @@ -279,8 +279,10 @@ if (!$posts = forum_search_posts($searchterms, $course->id, $page*$perpage, $per if (!$PAGE->has_secondary_navigation()) { echo $OUTPUT->heading($strforums, 2); } - echo $OUTPUT->heading($strsearchresults, 3); - echo $OUTPUT->heading(get_string("noposts", "forum"), 4); + $PAGE->activityheader->set_title($strsearchresults); + $searchresultsheadinglevel = $PAGE->activityheader->get_heading_level(); + echo $OUTPUT->heading($strsearchresults, $searchresultsheadinglevel); + echo $OUTPUT->heading(get_string("noposts", "forum"), $searchresultsheadinglevel + 1); if (!$individualparams) { $words = $search; From 33b3e89efb89c71ebc24b72363057bb42a04ebd9 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Tue, 7 Oct 2025 17:45:59 +0800 Subject: [PATCH 2/3] MDL-86840 forum: Do not use layout table for the search form --- .../forum/templates/big_search_form.mustache | 236 ++++++++---------- 1 file changed, 107 insertions(+), 129 deletions(-) diff --git a/public/mod/forum/templates/big_search_form.mustache b/public/mod/forum/templates/big_search_form.mustache index 7dc96f71712..656172b91fa 100644 --- a/public/mod/forum/templates/big_search_form.mustache +++ b/public/mod/forum/templates/big_search_form.mustache @@ -47,139 +47,117 @@ "user": "Helpy McUser" } }} -