r75727 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75726‎ | r75727 | r75728 >
Date:18:17, 31 October 2010
Author:platonides
Status:ok
Tags:
Comment:
A couple of Xml::hidden calls left by r75723
Modified paths:
  • /trunk/phase3/includes/ProtectionForm.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialSearch.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ProtectionForm.php
@@ -341,7 +341,7 @@
342342 $out .= Xml::openElement( 'form', array( 'method' => 'post',
343343 'action' => $this->mTitle->getLocalUrl( 'action=protect' ),
344344 'id' => 'mw-Protect-Form', 'onsubmit' => 'ProtectionForm.enableUnchainedInputs(true)' ) );
345 - $out .= Xml::hidden( 'wpEditToken',$wgUser->editToken() );
 345+ $out .= Html::hidden( 'wpEditToken',$wgUser->editToken() );
346346 }
347347
348348 $out .= Xml::openElement( 'fieldset' ) .
Index: trunk/phase3/includes/specials/SpecialSearch.php
@@ -937,7 +937,7 @@
938938 // Adds hidden namespace fields
939939 if ( !$this->searchAdvanced ) {
940940 foreach( $this->namespaces as $ns ) {
941 - $out .= Xml::hidden( "ns{$ns}", '1' );
 941+ $out .= Html::hidden( "ns{$ns}", '1' );
942942 }
943943 }
944944

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r75723More deprecated method callsreedy16:33, 31 October 2010

Status & tagging log