r21773 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r21772‎ | r21773 | r21774 >
Date:20:38, 1 May 2007
Author:aaron
Status:old
Tags:
Comment:
*Remove double-escaping and inconsistent capitalization
Modified paths:
  • /trunk/phase3/includes/SpecialBlockip.php (modified) (history)
  • /trunk/phase3/includes/SpecialProtectedpages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialBlockip.php
@@ -240,7 +240,7 @@
241241 <tr>
242242 <td style='padding-top: 1em'>&nbsp;</td>
243243 <td style='padding-top: 1em' align=\"left\">
244 - " . Xml::submitButton( wfMsgHtml( 'ipbsubmit' ),
 244+ " . Xml::submitButton( wfMsg( 'ipbsubmit' ),
245245 array( 'name' => 'wpBlock', 'tabindex' => '10' ) ) . "
246246 </td>
247247 </tr>
Index: trunk/phase3/includes/SpecialProtectedpages.php
@@ -39,7 +39,7 @@
4040 "</ul>";
4141 $s .= $pager->getNavigationBar();
4242 } else {
43 - $s = '<p>' . wfMsgHTML( 'protectedpagesempty' ) . '</p>';
 43+ $s = '<p>' . wfMsgHtml( 'protectedpagesempty' ) . '</p>';
4444 }
4545 $wgOut->addHTML( $s );
4646 }
@@ -121,9 +121,9 @@
122122 */
123123 function getSizeLimit( $sizetype, $size ) {
124124 $out = Xml::radio( 'sizetype', 'min', ($sizetype=='min'), array('id' => 'wpmin') );
125 - $out .= Xml::label( wfMsgHtml("minimum-size"), 'wpmin' );
 125+ $out .= Xml::label( wfMsg("minimum-size"), 'wpmin' );
126126 $out .= "&nbsp".Xml::radio( 'sizetype', 'max', ($sizetype=='max'), array('id' => 'wpmax') );
127 - $out .= Xml::label( wfMsgHtml("maximum-size"), 'wpmax' );
 127+ $out .= Xml::label( wfMsg("maximum-size"), 'wpmax' );
128128 $out .= "&nbsp".Xml::input('size', 9, $size, array( 'id' => 'wpsize' ) );
129129 $out .= ' '.wfMsg('pagesize');
130130 return $out;