From c7d87182b410aa64180ee1d294bf95fff4d137d6 Mon Sep 17 00:00:00 2001 From: Daimona Eaytoy Date: Wed, 21 Feb 2018 15:20:15 +0100 Subject: [PATCH] Wrap the throttled warning in a warningbox div Currently, the message informing that some actions have been disabled is quite impossible to notice at a first glance, since it's a bit confused with other form elements. However it actually is a warning and needs to be treated as that. Change-Id: I0d851333f8da200fb0b9b0c7d05ccd1f63e9e948 --- includes/Views/AbuseFilterViewEdit.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/Views/AbuseFilterViewEdit.php b/includes/Views/AbuseFilterViewEdit.php index 8ec79dacd..fa1d58624 100644 --- a/includes/Views/AbuseFilterViewEdit.php +++ b/includes/Views/AbuseFilterViewEdit.php @@ -518,9 +518,11 @@ class AbuseFilterViewEdit extends AbuseFilterView { ); $flags .= $out->parse( - $this->msg( 'abusefilter-edit-throttled-warning' ) - ->plaintextParams( $lang->commaList( $throttledActions ) ) - ->text() + Html::warningBox( + $this->msg( 'abusefilter-edit-throttled-warning' ) + ->plaintextParams( $lang->commaList( $throttledActions ) ) + ->text() + ) ); } }