More fixes for Strict MDL-7861

This commit is contained in:
moodler
2007-01-04 15:31:05 +00:00
parent 81d227745a
commit c7a049a3e2
2 changed files with 3 additions and 5 deletions
+3 -3
View File
@@ -201,7 +201,7 @@
/// Print the controls across the top
echo '<table width="100%"><tr><td width="33%">';
echo '<table width="100%"><tr><td>';
if ($groupmode == VISIBLEGROUPS or ($groupmode and has_capability('moodle/site:accessallgroups', $modcontext))) {
if ($groups = groups_get_groups_names($course->id)) { //TODO:
@@ -209,9 +209,9 @@
}
}
echo "</td><td width=\"33%\">";
echo "</td><td>";
forum_print_mode_form($discussion->id, $displaymode);
echo "</td><td width=\"33%\">";
echo "</td><td>";
if ($forum->type != 'single'
&& has_capability('mod/forum:movediscussions', $modcontext)) {
-2
View File
@@ -2436,13 +2436,11 @@ function forum_print_rating_menu($postid, $userid, $scale) {
function forum_print_mode_form($id, $mode, $forumtype='') {
global $FORUM_LAYOUT_MODES;
echo "<div align=\"center\">";
if ($forumtype == 'single') {
popup_form("view.php?f=$id&amp;mode=", $FORUM_LAYOUT_MODES, "mode", $mode, "");
} else {
popup_form("discuss.php?d=$id&amp;mode=", $FORUM_LAYOUT_MODES, "mode", $mode, "");
}
echo "</div>\n";
}
function forum_search_form($course, $search='') {