]> git.mjollnir.org Git - moodle.git/commitdiff
weblib: Fix typo in print_table() which was causing invalid <th> tag
authorfmarier <fmarier>
Fri, 7 Dec 2007 05:00:22 +0000 (05:00 +0000)
committerfmarier <fmarier>
Fri, 7 Dec 2007 05:00:22 +0000 (05:00 +0000)
MDL-11506

lib/weblib.php

index 396cfd40d86d2aaf0c4eaef244bcb31630653726..e2fb8154444c935429f4ff0043264d318499d1a4 100644 (file)
@@ -4594,9 +4594,7 @@ function print_table($table, $return=false) {
                 $align[$key] = '';
             }
 
-            $output .= '<th class="header c'.$key.'" scope="col">'. $heading .'</th>';
-            // commenting the following code out as <th style does not validate MDL-7861
-            //$output .= '<th sytle="vertical-align:top;'. $align[$key].$size[$key] .';white-space:nowrap;" class="header c'.$key.'" scope="col">'. $heading .'</th>';
+            $output .= '<th style="vertical-align:top;'. $align[$key].$size[$key] .';white-space:nowrap;" class="header c'.$key.'" scope="col">'. $heading .'</th>';
         }
         $output .= '</tr>'."\n";
     }