Vaishali Jain has uploaded a new change for review.
https://gerrit.wikimedia.org/r/276970
Change subject: Change all HTMLforms on Special:Tags including delete and
deactivate for ooui]
......................................................................
Change all HTMLforms on Special:Tags including delete and deactivate for ooui]
Changed all forms in the SpecialPage Special:Tags
Bug: T117790
Change-Id: I74f6c71a237f2fafcf834dbcf8a37a1fcff131b0
---
M includes/specials/SpecialTags.php
1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/70/276970/1
diff --git a/includes/specials/SpecialTags.php
b/includes/specials/SpecialTags.php
index b9bf724..90ae5cd 100644
--- a/includes/specials/SpecialTags.php
+++ b/includes/specials/SpecialTags.php
@@ -97,7 +97,7 @@
],
];
- $form = HTMLForm::factory( 'ooui', $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() );
@@ -300,7 +300,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 );
@@ -365,7 +365,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' ] );
@@ -416,7 +416,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/276970
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I74f6c71a237f2fafcf834dbcf8a37a1fcff131b0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Vaishali Jain <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits