]> git.mjollnir.org Git - moodle.git/commitdiff
Major fix for Bug 5027, "Three-col layout breaks when window is narrow" (also, Bug...
authornfreear <nfreear>
Thu, 13 Apr 2006 16:07:12 +0000 (16:07 +0000)
committernfreear <nfreear>
Thu, 13 Apr 2006 16:07:12 +0000 (16:07 +0000)
course/lib.php

index 215bbce007b3e54b6627897f4e4c7cfa37354658..b7bd79e73717e454fcf9aecf9db7434358b1e497 100644 (file)
@@ -800,7 +800,8 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
     //Acccessibility: replace table with list <ul>, but don't output empty list.
     if (!empty($section->sequence)) {
 
-        echo "<ul class=\"section\" style=\"width:$width\">\n";
+        // Fix bug #5027, don't want style=\"width:$width\".
+        echo "<ul class=\"section\">\n";
         $sectionmods = explode(",", $section->sequence);
 
         foreach ($sectionmods as $modnumber) {
@@ -891,7 +892,9 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
                 echo "</li>\n";
             }
         }
-    }
+    } elseif ($ismoving) {
+        echo "<ul class=\"section\">\n";
+    }    
     if ($ismoving) {
         echo '<li><a title="'.$strmovefull.'"'.
              ' href="'.$CFG->wwwroot.'/course/mod.php?movetosection='.$section->id.'&amp;sesskey='.$USER->sesskey.'">'.