From b3cdbc240d5da38329152da15aec580b6476e1ae Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 14 Apr 2008 09:24:53 +0000 Subject: [PATCH] MDL-14270 mode selector alignment for single discussion forums; merged from MOODLE_19_STABLE --- mod/forum/lib.php | 2 ++ theme/standard/styles_layout.css | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 26bf8782c6..339840f7df 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 55e3bdc293..283211d336 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; -- 2.39.5