case self::AS_CANNOT_USE_CUSTOM_MODEL:
case self::AS_PARSE_ERROR:
case self::AS_UNICODE_NOT_SUPPORTED:
- $out->addWikiTextAsInterface(
- '<div class="error">' . "\n" .
- $status->getWikiText() .
- '</div>'
- );
+ $out->wrapWikiTextAsInterface( 'error', $status->getWikiText() );
return true;
case self::AS_SUCCESS_NEW_ARTICLE:
$this->contentFormat,
$ex->getMessage()
);
- $out->addWikiTextAsInterface( '<div class="error">' . $msg->plain() . '</div>' );
+ $out->wrapWikiTextAsInterface( 'error', $msg->plain() );
}
}
$this->contentFormat,
$ex->getMessage()
);
- $out->addWikiTextAsInterface( '<div class="error">' . $msg->plain() . '</div>' );
+ $out->wrapWikiTextAsInterface( 'error', $msg->plain() );
}
}
}