mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-28 16:00:28 +00:00
23 lines
467 B
PHP
23 lines
467 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() {
|
||
|
// Give grep a chance to find the usages:
|
||
|
// abusefilter-warning-match-empty-regex
|
||
|
return wfMessage(
|
||
|
'abusefilter-warning-' . $this->mExceptionID,
|
||
|
$this->mPosition, ...$this->mParams
|
||
|
);
|
||
|
}
|
||
|
}
|