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:
Func 2022-03-18 19:22:29 +08:00
parent 0d1481dc5a
commit bfe4c13c0b

View file

@ -148,7 +148,6 @@ class SpecialNuke extends SpecialPage {
->setSubmitTextMsg( 'nuke-submit-user' )
->setSubmitName( 'nuke-submit-user' )
->setAction( $this->getPageTitle()->getLocalURL( 'action=submit' ) )
->addHiddenField( 'wpEditToken', $this->getUser()->getEditToken() )
->prepareForm()
->displayForm( false );
}