mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 14:13:54 +00:00
a9722868ab
Change-Id: I229c528505f0208b34f37d8c969450731e5a08a3
23 lines
495 B
PHP
23 lines
495 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\AbuseFilter\Parser;
|
|
|
|
use Message;
|
|
|
|
/**
|
|
* A variant of user-visible exception that is not fatal.
|
|
*/
|
|
class UserVisibleWarning extends AFPUserVisibleException {
|
|
/**
|
|
* @return Message
|
|
*/
|
|
public function getMessageObj() : Message {
|
|
// Give grep a chance to find the usages:
|
|
// abusefilter-warning-match-empty-regex
|
|
return new Message(
|
|
'abusefilter-warning-' . $this->mExceptionID,
|
|
array_merge( [ $this->mPosition ], $this->mParams )
|
|
);
|
|
}
|
|
}
|