CategoryTreePage: Avoid setting internal fields of HTMLForm

HTMLForm would handle title itself, don't need to set manually here.

Change-Id: Ifff538f48f5578cca5fc7b3a2724e79a851958c3
This commit is contained in:
Func 2022-03-20 21:41:15 +08:00
parent a78c27f9b8
commit e20262bc86

View file

@ -157,7 +157,6 @@ class CategoryTreePage extends SpecialPage {
]; ];
HTMLForm::factory( 'ooui', $formDescriptor, $this->getContext() ) HTMLForm::factory( 'ooui', $formDescriptor, $this->getContext() )
->addHiddenFields( [ 'title' => $this->getPageTitle()->getPrefixedDbKey() ] )
->setWrapperLegendMsg( 'categorytree-legend' ) ->setWrapperLegendMsg( 'categorytree-legend' )
->setSubmitTextMsg( 'categorytree-go' ) ->setSubmitTextMsg( 'categorytree-go' )
->setMethod( 'get' ) ->setMethod( 'get' )