$out->addBacklinkSubtitle( $this->getPageTitle() );
return true;
} else {
- $out->addWikiTextAsInterface( "<div class=\"error\">\n" . $status->getWikiText() .
- "\n</div>" );
+ $out->wrapWikiTextAsInterface( 'error', $status->getWikiText() );
return false;
}
}
// is the tag actually able to be deleted?
$canDeleteResult = ChangeTags::canDeleteTag( $tag, $user );
if ( !$canDeleteResult->isGood() ) {
- $out->addWikiTextAsInterface( "<div class=\"error\">\n" . $canDeleteResult->getWikiText() .
- "\n</div>" );
+ $out->wrapWikiTextAsInterface( 'error', $canDeleteResult->getWikiText() );
if ( !$canDeleteResult->isOK() ) {
return;
}
$func = $activate ? 'canActivateTag' : 'canDeactivateTag';
$result = ChangeTags::$func( $tag, $user );
if ( !$result->isGood() ) {
- $out->addWikiTextAsInterface( "<div class=\"error\">\n" . $result->getWikiText() .
- "\n</div>" );
+ $out->wrapWikiTextAsInterface( 'error', $result->getWikiText() );
if ( !$result->isOK() ) {
return;
}
$out->addReturnTo( $this->getPageTitle() );
return true;
} else {
- $out->addWikiTextAsInterface( "<div class=\"error\">\n" . $status->getWikitext() .
- "\n</div>" );
+ $out->wrapWikiTextAsInterface( 'error', $status->getWikitext() );
return false;
}
}