Index: trunk/extensions/CentralNotice/special/SpecialCentralNotice.php |
— | — | @@ -480,7 +480,7 @@ |
481 | 481 | $htmlOut .= Xml::closeElement( 'table' ); |
482 | 482 | |
483 | 483 | if ( $this->editable ) { |
484 | | - $htmlOut .= Html::hidden( 'authtoken', $wgUser->getEditToken() ); |
| 484 | + $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() ); |
485 | 485 | $htmlOut .= Xml::openElement( 'div', array( 'class' => 'cn-buttons' ) ); |
486 | 486 | $htmlOut .= Xml::submitButton( wfMsg( 'centralnotice-modify' ), |
487 | 487 | array( |
— | — | @@ -576,7 +576,7 @@ |
577 | 577 | |
578 | 578 | $htmlOut .= Xml::closeElement( 'table' ); |
579 | 579 | $htmlOut .= Html::hidden( 'change', 'weight' ); |
580 | | - $htmlOut .= Html::hidden( 'authtoken', $wgUser->getEditToken() ); |
| 580 | + $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() ); |
581 | 581 | |
582 | 582 | // Submit button |
583 | 583 | $htmlOut .= Xml::tags( 'div', |
— | — | @@ -775,7 +775,7 @@ |
776 | 776 | } |
777 | 777 | } |
778 | 778 | if ( $this->editable ) { |
779 | | - $htmlOut .= Html::hidden( 'authtoken', $wgUser->getEditToken() ); |
| 779 | + $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() ); |
780 | 780 | |
781 | 781 | // Submit button |
782 | 782 | $htmlOut .= Xml::tags( 'div', |
Index: trunk/extensions/CentralNotice/special/SpecialNoticeTemplate.php |
— | — | @@ -305,7 +305,7 @@ |
306 | 306 | |
307 | 307 | $htmlOut .= Xml::textarea( 'templateBody', $body, 60, 20 ); |
308 | 308 | $htmlOut .= Html::closeElement( 'fieldset' ); |
309 | | - $htmlOut .= Html::hidden( 'authtoken', $wgUser->getEditToken() ); |
| 309 | + $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() ); |
310 | 310 | |
311 | 311 | // Submit button |
312 | 312 | $htmlOut .= Xml::tags( 'div', |
— | — | @@ -490,7 +490,7 @@ |
491 | 491 | |
492 | 492 | if ( $this->editable ) { |
493 | 493 | $htmlOut .= Html::hidden( 'wpUserLanguage', $wpUserLang ); |
494 | | - $htmlOut .= Html::hidden( 'authtoken', $wgUser->getEditToken() ); |
| 494 | + $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() ); |
495 | 495 | $htmlOut .= Xml::tags( 'div', |
496 | 496 | array( 'class' => 'cn-buttons' ), |
497 | 497 | Xml::submitButton( |
— | — | @@ -640,7 +640,7 @@ |
641 | 641 | if ( $this->editable ) { |
642 | 642 | // Indicate which form was submitted |
643 | 643 | $htmlOut .= Html::hidden( 'mainform', 'true' ); |
644 | | - $htmlOut .= Html::hidden( 'authtoken', $wgUser->getEditToken() ); |
| 644 | + $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() ); |
645 | 645 | $htmlOut .= Xml::tags( 'div', |
646 | 646 | array( 'class' => 'cn-buttons' ), |
647 | 647 | Xml::submitButton( wfMsg( 'centralnotice-save-banner' ) ) |
— | — | @@ -670,7 +670,7 @@ |
671 | 671 | |
672 | 672 | $htmlOut .= Html::closeElement( 'tr' ); |
673 | 673 | $htmlOut .= Html::closeElement( 'table' ); |
674 | | - $htmlOut .= Html::hidden( 'authtoken', $wgUser->getEditToken() ); |
| 674 | + $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() ); |
675 | 675 | $htmlOut .= Html::closeElement( 'fieldset' ); |
676 | 676 | $htmlOut .= Html::closeElement( 'form' ); |
677 | 677 | } |
Index: trunk/extensions/CentralNotice/TemplatePager.php |
— | — | @@ -106,7 +106,7 @@ |
107 | 107 | $htmlOut = ''; |
108 | 108 | $htmlOut .= Xml::closeElement( 'table' ); |
109 | 109 | if ( $this->editable ) { |
110 | | - $htmlOut .= Html::hidden( 'authtoken', $wgUser->getEditToken() ); |
| 110 | + $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() ); |
111 | 111 | $htmlOut .= Xml::tags( 'div', |
112 | 112 | array( 'class' => 'cn-buttons' ), |
113 | 113 | Xml::submitButton( wfMsg( 'centralnotice-modify' ) ) |