],
];
- $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() );
$newRow .= Xml::tags( 'td', null, Xml::element( 'code', null, $tag ) );
$linkRenderer = $this->getLinkRenderer();
- $disp = ChangeTags::tagDescription( $tag );
+ $disp = ChangeTags::tagDescription( $tag, $this->getContext() );
if ( $showEditLinks ) {
$disp .= ' ';
$editLink = $linkRenderer->makeLink(
}
if ( $showManageActions ) { // we've already checked that the user had the requisite userright
-
// activate
if ( ChangeTags::canActivateTag( $tag )->isOK() ) {
$actionLinks[] = $linkRenderer->makeKnownLink(
[],
[ 'tag' => $tag ] );
}
-
}
if ( $showDeleteActions || $showManageActions ) {
$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 );
'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' ] );
'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' ] );