r108555 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108554‎ | r108555 | r108556 >
Date:22:33, 10 January 2012
Author:kaldari
Status:ok
Tags:
Comment:
follow-up to r108110 - making 1.18wmf compat
Modified paths:
  • /trunk/extensions/CentralNotice/TemplatePager.php (modified) (history)
  • /trunk/extensions/CentralNotice/special/SpecialCentralNotice.php (modified) (history)
  • /trunk/extensions/CentralNotice/special/SpecialNoticeTemplate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/special/SpecialCentralNotice.php
@@ -480,7 +480,7 @@
481481 $htmlOut .= Xml::closeElement( 'table' );
482482
483483 if ( $this->editable ) {
484 - $htmlOut .= Html::hidden( 'authtoken', $wgUser->getEditToken() );
 484+ $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() );
485485 $htmlOut .= Xml::openElement( 'div', array( 'class' => 'cn-buttons' ) );
486486 $htmlOut .= Xml::submitButton( wfMsg( 'centralnotice-modify' ),
487487 array(
@@ -576,7 +576,7 @@
577577
578578 $htmlOut .= Xml::closeElement( 'table' );
579579 $htmlOut .= Html::hidden( 'change', 'weight' );
580 - $htmlOut .= Html::hidden( 'authtoken', $wgUser->getEditToken() );
 580+ $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() );
581581
582582 // Submit button
583583 $htmlOut .= Xml::tags( 'div',
@@ -775,7 +775,7 @@
776776 }
777777 }
778778 if ( $this->editable ) {
779 - $htmlOut .= Html::hidden( 'authtoken', $wgUser->getEditToken() );
 779+ $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() );
780780
781781 // Submit button
782782 $htmlOut .= Xml::tags( 'div',
Index: trunk/extensions/CentralNotice/special/SpecialNoticeTemplate.php
@@ -305,7 +305,7 @@
306306
307307 $htmlOut .= Xml::textarea( 'templateBody', $body, 60, 20 );
308308 $htmlOut .= Html::closeElement( 'fieldset' );
309 - $htmlOut .= Html::hidden( 'authtoken', $wgUser->getEditToken() );
 309+ $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() );
310310
311311 // Submit button
312312 $htmlOut .= Xml::tags( 'div',
@@ -490,7 +490,7 @@
491491
492492 if ( $this->editable ) {
493493 $htmlOut .= Html::hidden( 'wpUserLanguage', $wpUserLang );
494 - $htmlOut .= Html::hidden( 'authtoken', $wgUser->getEditToken() );
 494+ $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() );
495495 $htmlOut .= Xml::tags( 'div',
496496 array( 'class' => 'cn-buttons' ),
497497 Xml::submitButton(
@@ -640,7 +640,7 @@
641641 if ( $this->editable ) {
642642 // Indicate which form was submitted
643643 $htmlOut .= Html::hidden( 'mainform', 'true' );
644 - $htmlOut .= Html::hidden( 'authtoken', $wgUser->getEditToken() );
 644+ $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() );
645645 $htmlOut .= Xml::tags( 'div',
646646 array( 'class' => 'cn-buttons' ),
647647 Xml::submitButton( wfMsg( 'centralnotice-save-banner' ) )
@@ -670,7 +670,7 @@
671671
672672 $htmlOut .= Html::closeElement( 'tr' );
673673 $htmlOut .= Html::closeElement( 'table' );
674 - $htmlOut .= Html::hidden( 'authtoken', $wgUser->getEditToken() );
 674+ $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() );
675675 $htmlOut .= Html::closeElement( 'fieldset' );
676676 $htmlOut .= Html::closeElement( 'form' );
677677 }
Index: trunk/extensions/CentralNotice/TemplatePager.php
@@ -106,7 +106,7 @@
107107 $htmlOut = '';
108108 $htmlOut .= Xml::closeElement( 'table' );
109109 if ( $this->editable ) {
110 - $htmlOut .= Html::hidden( 'authtoken', $wgUser->getEditToken() );
 110+ $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() );
111111 $htmlOut .= Xml::tags( 'div',
112112 array( 'class' => 'cn-buttons' ),
113113 Xml::submitButton( wfMsg( 'centralnotice-modify' ) )

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r108110Update deprecated code...reedy01:48, 5 January 2012

Status & tagging log