]> git.mjollnir.org Git - moodle.git/commitdiff
making default scope col for <th>
authortoyomoyo <toyomoyo>
Tue, 12 Dec 2006 08:11:49 +0000 (08:11 +0000)
committertoyomoyo <toyomoyo>
Tue, 12 Dec 2006 08:11:49 +0000 (08:11 +0000)
lib/weblib.php

index da18a0296b79c115e1dcac44d59d76e704210c6a..89573236a41ca4384bba81b50b5c4b5edd9d0be3 100644 (file)
@@ -3401,7 +3401,7 @@ function print_table($table, $return=false) {
             if (!isset($align[$key])) {
                 $align[$key] = '';
             }
-            $output .= '<th valign="top" '. $align[$key].$size[$key] .' nowrap="nowrap" class="header c'.$key.'">'. $heading .'</th>';
+            $output .= '<th valign="top" '. $align[$key].$size[$key] .' nowrap="nowrap" class="header c'.$key.'" scope="col">'. $heading .'</th>';
         }
         $output .= '</tr>'."\n";
     }
@@ -3527,7 +3527,7 @@ function make_table($table) {
             if (!isset($align[$key])) {
                 $align[$key] = '';
             }
-            $output .= '<th valign="top" '. $align[$key].$size[$key] .' nowrap="nowrap" class="'. $table->class .'header">'.$fontsize.$heading.'</th>';
+            $output .= '<th valign="top" '. $align[$key].$size[$key] .' nowrap="nowrap" class="'. $table->class .'header" scope="col">'.$fontsize.$heading.'</th>';
         }
         $output .= '</tr>'."\n";
     }