]> git.mjollnir.org Git - moodle.git/commitdiff
Some slight modifications to the css classes for one-tab lines MDL-7782
authormoodler <moodler>
Fri, 26 Jan 2007 06:23:53 +0000 (06:23 +0000)
committermoodler <moodler>
Fri, 26 Jan 2007 06:23:53 +0000 (06:23 +0000)
lib/weblib.php

index db1285f81ec48d6258aa423ba224786e4bf63774..1664068a1b3e36e9520431e57247172dc1bd3ec4 100644 (file)
@@ -5432,7 +5432,10 @@ function convert_tree_to_html($tree, $row=0) {
     foreach ($tree as $tab) {
         $count--;   // countdown to zero
 
-        if ($first) {
+        if ($first && ($count == 0)) {   // Just one in the row
+            $str .= '<li class="first last">';
+            $first = false;
+        } else if ($first) {
             $str .= '<li class="first">';
             $first = false;
         } else if ($count == 0) {