More fixes for Strict MDL-7861
This commit is contained in:
@@ -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)) {
|
||||
|
||||
@@ -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&mode=", $FORUM_LAYOUT_MODES, "mode", $mode, "");
|
||||
} else {
|
||||
popup_form("discuss.php?d=$id&mode=", $FORUM_LAYOUT_MODES, "mode", $mode, "");
|
||||
}
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
function forum_search_form($course, $search='') {
|
||||
|
||||
Reference in New Issue
Block a user