Follow-up r53286: More fixes for invalid HTML
authorRaimond Spekking <raymond@users.mediawiki.org>
Sat, 18 Jul 2009 14:36:42 +0000 (14:36 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Sat, 18 Jul 2009 14:36:42 +0000 (14:36 +0000)
includes/specials/SpecialAllmessages.php

index ceafa4a..dd3ce6d 100644 (file)
@@ -66,7 +66,7 @@ class SpecialAllmessages extends SpecialPage {
                        </tr>
                        <tr>\n
                                <td class='mw-label'>" .
-                                       Xml::label( wfMsg( 'allmessages-filter' ), 'mw-allmessages-form-filter' ) .
+                                       Xml::label( wfMsg( 'allmessages-filter' ), 'filter' ) .
                                "</td>\n
                                <td class='mw-input'>" .
                                        Xml::radioLabel( wfMsg( 'allmessages-filter-unmodified' ),
@@ -267,9 +267,20 @@ class AllmessagesTablePager extends TablePager {
        }
 
        function getStartBody() {
-               return "<table border=\"1\" class=\"TablePager\" style=\"width:100%;\" id=\"allmessagestable\"><thead>\n<tr>" .
-                       "<th rowspan=\"2\">" . wfMsg('allmessagesname') . "</th><th>" . wfMsg('allmessagesdefault') .
-                       "</tr>\n<tr><th>" . wfMsg('allmessagescurrent') . "</th></tr>\n";
+               return Xml::openElement( 'table', array( 'class' => 'TablePager', 'id' => 'mw-allmessagestable' ) ) . "\n" .
+                       "<tr>
+                               <th rowspan=\"2\">" .
+                                       wfMsg( 'allmessagesname' ) . "
+                               </th>
+                               <th>" .
+                                       wfMsg( 'allmessagesdefault' ) .
+                               "</th>
+                       </tr>\n
+                       <tr>
+                               <th>" .
+                                       wfMsg( 'allmessagescurrent' ) .
+                               "</th>
+                       </tr>\n";
        }
 
        function formatValue( $field , $value ){