diff --git a/mod/forum/lib.php b/mod/forum/lib.php
index 26bf8782c62..339840f7dff 100644
--- a/mod/forum/lib.php
+++ b/mod/forum/lib.php
@@ -3458,7 +3458,9 @@ function forum_print_rating_menu($postid, $userid, $scale, $myrating=NULL) {
*/
function forum_print_mode_form($id, $mode, $forumtype='') {
if ($forumtype == 'single') {
+ echo '
';
popup_form("view.php?f=$id&mode=", forum_get_layout_modes(), "mode", $mode, "");
+ echo '
';
} else {
popup_form("discuss.php?d=$id&mode=", forum_get_layout_modes(), "mode", $mode, "");
}
diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css
index 55e3bdc293a..283211d3364 100644
--- a/theme/standard/styles_layout.css
+++ b/theme/standard/styles_layout.css
@@ -3371,6 +3371,10 @@ table.presets {
*** Modules: Forum
***/
+#mod-forum-view .forummode {
+ text-align:center;
+}
+
.forumheaderlist,
.forumpost {
border-width:1px;