$form = new HTMLForm( $fields, $this->getContext() );
$form->setAction( $this->getPageTitle( 'create' )->getLocalURL() );
$form->setWrapperLegendMsg( 'tags-create-heading' );
- $form->setHeaderText( $this->msg( 'tags-create-explanation' )->plain() );
+ $form->setHeaderText( $this->msg( 'tags-create-explanation' )->parseAsBlock() );
$form->setSubmitCallback( array( $this, 'processCreateTagForm' ) );
$form->setSubmitTextMsg( 'tags-create-submit' );
$form->show();
$func = $activate ? 'canActivateTag' : 'canDeactivateTag';
$result = ChangeTags::$func( $tag, $user );
if ( !$result->isGood() ) {
- $out->wrapWikiMsg( "<div class=\"error\">\n$1" . $result->getWikiText() .
+ $out->addWikiText( "<div class=\"error\">\n" . $result->getWikiText() .
"\n</div>" );
if ( !$result->isOK() ) {
return;
}
}
+ /**
+ * Return an array of subpages that this special page will accept.
+ *
+ * @return string[] subpages
+ */
+ public function getSubpagesForPrefixSearch() {
+ // The subpages does not have an own form, so not listing it at the moment
+ return array(
+ // 'delete',
+ // 'activate',
+ // 'deactivate',
+ // 'create',
+ );
+ }
+
protected function getGroupName() {
return 'changes';
}