mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Wrap error messages in Html::errorBox
The message 'abusefilter-edit-notallowed' is used twice and outputted as plain text. This makes it really, really hard to notice. Wrap it in a block-level errorbox to make sure users see it. Change-Id: I6e5579f9a5e33f05520001e10ffdde928ffdcff0
This commit is contained in:
parent
cacc034d1a
commit
9012848032
|
@ -46,7 +46,13 @@ class AbuseFilterViewEdit extends AbuseFilterView {
|
|||
$this->exposeWarningMessages();
|
||||
|
||||
if ( $filter == 'new' && !$this->canEdit() ) {
|
||||
$out->addWikiMsg( 'abusefilter-edit-notallowed' );
|
||||
$out->addHTML(
|
||||
Xml::tags(
|
||||
'p',
|
||||
null,
|
||||
Html::errorBox( $this->msg( 'abusefilter-edit-notallowed' )->parse() )
|
||||
)
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -92,7 +98,13 @@ class AbuseFilterViewEdit extends AbuseFilterView {
|
|||
} else {
|
||||
if ( $tokenMatches ) {
|
||||
// Lost rights meanwhile
|
||||
$out->addWikiMsg( 'abusefilter-edit-notallowed' );
|
||||
$out->addHTML(
|
||||
Xml::tags(
|
||||
'p',
|
||||
null,
|
||||
Html::errorBox( $this->msg( 'abusefilter-edit-notallowed' )->parse() )
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
if ( $history_id ) {
|
||||
|
|
Loading…
Reference in a new issue