jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/330083 )

Change subject: Converted Special:Tags to OOUI
......................................................................


Converted Special:Tags to OOUI

Updated forms to use OOUI with HTMLForm::factory()

Bug: T117742
Change-Id: I6ec8dd59af482ed22ac3bee29c35d4a056540ac2
---
M includes/specials/SpecialTags.php
1 file changed, 4 insertions(+), 4 deletions(-)

Approvals:
  TTO: Looks good to me, approved
  MtDu: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/includes/specials/SpecialTags.php 
b/includes/specials/SpecialTags.php
index ea40cb8..e67356f 100644
--- a/includes/specials/SpecialTags.php
+++ b/includes/specials/SpecialTags.php
@@ -98,7 +98,7 @@
                                ],
                        ];
 
-                       $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 @@
                                $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 @@
                        '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 @@
                        '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' ] );

-- 
To view, visit https://gerrit.wikimedia.org/r/330083
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I6ec8dd59af482ed22ac3bee29c35d4a056540ac2
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Awu42 <9922y...@gmail.com>
Gerrit-Reviewer: Florianschmidtwelzow <florian.schmidt.stargatewis...@gmail.com>
Gerrit-Reviewer: MtDu <justin.d...@gmail.com>
Gerrit-Reviewer: TTO <at.li...@live.com.au>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to