mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-30 19:14:43 +00:00
SpecialNuke: Don't set edit token in HTMLForm twice
HTMLForm would set it for post form, use setTokenSalt() to amend. Change-Id: Ia79dbd261e9f0a34bf9f10660a1043355ab72ede
This commit is contained in:
parent
0d1481dc5a
commit
bfe4c13c0b
|
@ -148,7 +148,6 @@ class SpecialNuke extends SpecialPage {
|
||||||
->setSubmitTextMsg( 'nuke-submit-user' )
|
->setSubmitTextMsg( 'nuke-submit-user' )
|
||||||
->setSubmitName( 'nuke-submit-user' )
|
->setSubmitName( 'nuke-submit-user' )
|
||||||
->setAction( $this->getPageTitle()->getLocalURL( 'action=submit' ) )
|
->setAction( $this->getPageTitle()->getLocalURL( 'action=submit' ) )
|
||||||
->addHiddenField( 'wpEditToken', $this->getUser()->getEditToken() )
|
|
||||||
->prepareForm()
|
->prepareForm()
|
||||||
->displayForm( false );
|
->displayForm( false );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue