]> git.mjollnir.org Git - moodle.git/commitdiff
More fixes for Strict MDL-7861
authormoodler <moodler>
Thu, 4 Jan 2007 15:31:05 +0000 (15:31 +0000)
committermoodler <moodler>
Thu, 4 Jan 2007 15:31:05 +0000 (15:31 +0000)
mod/forum/discuss.php
mod/forum/lib.php

index 4d62fd8a264af71ac9669177006e00f14eb8fe2d..7fd934de998ab0d7ad3bed2133713abfe44473bc 100644 (file)
 
 /// 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:
         }
     }
 
-    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)) {
index 38bba01e87de09d52b0a909835afe9b230811ebb..a831de4352baf0309944c7ffb2ccc02209c5fc01 100644 (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='') {