Follow-up e20262bc: Strip subpage name in action

Thanks to comments on Iaec81a2f, I realized the function of removed code.
Use the native setTitle() method to strip subpage name.

Change-Id: I4b1f48e0b705fb4aa7262454614d90dc1653a4fe
This commit is contained in:
Func 2022-03-27 12:31:39 +08:00
parent 660c0cca83
commit be3c21741d

View file

@ -160,6 +160,8 @@ class CategoryTreePage extends SpecialPage {
->setWrapperLegendMsg( 'categorytree-legend' )
->setSubmitTextMsg( 'categorytree-go' )
->setMethod( 'get' )
// Strip subpage
->setTitle( $this->getPageTitle() )
->prepareForm()
->displayForm( false );
}