From: awu42 <9922yalp@gmail.com> Date: Sun, 1 Jan 2017 23:16:30 +0000 (-0500) Subject: Converted Special:Tags to OOUI X-Git-Tag: 1.31.0-rc.0~4422^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=4c978a1ed46061e70117f3af6ef1af8bfd422cbf;p=lhc%2Fweb%2Fwiklou.git Converted Special:Tags to OOUI Updated forms to use OOUI with HTMLForm::factory() Bug: T117742 Change-Id: I6ec8dd59af482ed22ac3bee29c35d4a056540ac2 --- diff --git a/includes/specials/SpecialTags.php b/includes/specials/SpecialTags.php index ea40cb807d..e67356f616 100644 --- a/includes/specials/SpecialTags.php +++ b/includes/specials/SpecialTags.php @@ -98,7 +98,7 @@ class SpecialTags extends SpecialPage { ], ]; - $form = new HTMLForm( $fields, $this->getContext() ); + $form = HTMLForm::factory( 'ooui', $fields, $this->getContext() ); $form->setAction( $this->getPageTitle( 'create' )->getLocalURL() ); $form->setWrapperLegendMsg( 'tags-create-heading' ); $form->setHeaderText( $this->msg( 'tags-create-explanation' )->parseAsBlock() ); @@ -312,7 +312,7 @@ class SpecialTags extends SpecialPage { $out->parse( $status->getWikiText() ) . $this->msg( 'tags-create-warnings-below' )->parseAsBlock(); - $subform = new HTMLForm( $fields, $this->getContext() ); + $subform = HTMLForm::factory( 'ooui', $fields, $this->getContext() ); $subform->setAction( $this->getPageTitle( 'create' )->getLocalURL() ); $subform->setWrapperLegendMsg( 'tags-create-heading' ); $subform->setHeaderText( $headerText ); @@ -377,7 +377,7 @@ class SpecialTags extends SpecialPage { 'required' => true, ]; - $form = new HTMLForm( $fields, $this->getContext() ); + $form = HTMLForm::factory( 'ooui', $fields, $this->getContext() ); $form->setAction( $this->getPageTitle( 'delete' )->getLocalURL() ); $form->tagAction = 'delete'; // custom property on HTMLForm object $form->setSubmitCallback( [ $this, 'processTagForm' ] ); @@ -428,7 +428,7 @@ class SpecialTags extends SpecialPage { 'required' => true, ]; - $form = new HTMLForm( $fields, $this->getContext() ); + $form = HTMLForm::factory( 'ooui', $fields, $this->getContext() ); $form->setAction( $this->getPageTitle( $actionStr )->getLocalURL() ); $form->tagAction = $actionStr; $form->setSubmitCallback( [ $this, 'processTagForm' ] );