* Add a CSS id to the table
authorRaimond Spekking <raymond@users.mediawiki.org>
Thu, 13 Mar 2008 23:20:29 +0000 (23:20 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Thu, 13 Mar 2008 23:20:29 +0000 (23:20 +0000)
* Use proper XML function

includes/SpecialBlockip.php

index 13a6bc7..32bc430 100644 (file)
@@ -123,7 +123,7 @@ class IPBlockForm {
 <form id=\"blockip\" method=\"post\" action=\"{$action}\">" .
                        Xml::openElement( 'fieldset' ) .
                        Xml::element( 'legend', null, wfMsg( 'blockip-legend' ) ) .
-                       Xml::openElement( 'table', array ( 'border' => '0' ) ) .
+                       Xml::openElement( 'table', array ( 'border' => '0', 'id' => 'mw-blockip-table' ) ) .
                        "<tr>
                                <td align=\"$alignRight\">{$mIpaddress}</td>
                                <td>" .
@@ -399,7 +399,7 @@ class IPBlockForm {
        }
 
        function showLogFragment( $out, $title ) {
-               $out->addHtml( wfElement( 'h2', NULL, LogPage::logName( 'block' ) ) );
+               $out->addHtml( Xml::element( 'h2', NULL, LogPage::logName( 'block' ) ) );
                $request = new FauxRequest( array( 'page' => $title->getPrefixedText(), 'type' => 'block' ) );
                $viewer = new LogViewer( new LogReader( $request ) );
                $viewer->showList( $out );