mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 14:13:54 +00:00
Merge "Remove useless param to wfMessage"
This commit is contained in:
commit
1b0fa6bc6e
|
@ -1312,12 +1312,8 @@ class AbuseFilter {
|
|||
// abusefilter-action-tag, abusefilter-action-throttle, abusefilter-action-warn,
|
||||
// abusefilter-action-blockautopromote, abusefilter-action-block, abusefilter-action-degroup,
|
||||
// abusefilter-action-rangeblock, abusefilter-action-disallow
|
||||
$display = $msgCallback( "abusefilter-action-$action" )->escaped();
|
||||
$display = $msgCallback( "abusefilter-action-$action" )->rawParams( $display )->isDisabled()
|
||||
? htmlspecialchars( $action )
|
||||
: $display;
|
||||
|
||||
return $display;
|
||||
$msg = $msgCallback( "abusefilter-action-$action" );
|
||||
return $msg->isDisabled() ? htmlspecialchars( $action ) : $msg->escaped();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue