diff --git a/course/format/social.php b/course/format/social.php
index a62297d0739..83a1325dbff 100644
--- a/course/format/social.php
+++ b/course/format/social.php
@@ -25,6 +25,11 @@
print_side_block(get_string("people"), "", $moddata, $modicon, "", $leftwidth);
+/// Print a form to search forums
+ $searchform = forum_print_search_form($course, "", true);
+ $searchform = "
$searchform
";
+ print_side_block(get_string("search","forum"), $searchform, "", "", "", $leftwidth);
+
/// Then, print all the available resources (Section 0)
print_section_block(get_string("activities"), $course, $sections[0],
@@ -40,11 +45,6 @@
}
-/// Print a form to search forums
- $searchform = forum_print_search_form($course, "", true);
- $searchform = "$searchform
";
- print_side_block(get_string("search","forum"), $searchform, "", "", "", $leftwidth);
-
/// Admin links and controls
print_course_admin_links($course);