$tagsToRemove = array_diff( $existingTags, $tagList );
}
- //var_dump( array( 'add' => $tagsToAdd, 'remove' => $tagsToRemove ) );
-
if ( !$tagsToAdd && !$tagsToRemove ) {
$status = Status::newFatal( 'tags-edit-none-selected' );
} else {
*/
protected function success() {
$this->getOutput()->setPageTitle( $this->msg( 'actioncomplete' ) );
- $this->getOutput()->wrapWikiMsg( "<span class=\"success\">\n$1\n</span>",
+ $this->getOutput()->wrapWikiMsg( "<div class=\"successbox\">\n$1\n</div>",
'tags-edit-success' );
$this->wasSaved = true;
$this->revList->reloadFromMaster();
*/
protected function failure( $status ) {
$this->getOutput()->setPageTitle( $this->msg( 'actionfailed' ) );
- $this->getOutput()->addWikiText( $status->getWikiText( 'tags-edit-failure' ) );
+ $this->getOutput()->addWikiText( '<div class="errorbox">' .
+ $status->getWikiText( 'tags-edit-failure' ) .
+ '</div>'
+ );
$this->showForm();
}
"tags-edit-reason": "Reason:",
"tags-edit-revision-submit": "Apply changes to {{PLURAL:$1|this revision|$1 revisions}}",
"tags-edit-logentry-submit": "Apply changes to {{PLURAL:$1|this log entry|$1 log entries}}",
- "tags-edit-success": "<strong>The changes were successfully applied.</strong>",
- "tags-edit-failure": "<strong>The changes could not be applied:</strong>\n$1",
+ "tags-edit-success": "The changes were successfully applied.",
+ "tags-edit-failure": "The changes could not be applied:\n$1",
"tags-edit-nooldid-title": "Invalid target revision",
"tags-edit-nooldid-text": "You have either not specified any target revision on which to perform this function, or the specified revision does not exist.",
"tags-edit-none-selected": "Please select at least one tag to add or remove.",