mediawiki-extensions-AbuseF.../includes/AbuseFilterSuppressLogFormatter.php
Matěj Suchánek 10ad58a6f3 Migrate AbuseFilter suppress log
Also make entries in Special:Log/suppress filterable.

Change-Id: Ic23e724997e4748c8d0da8138aa73d31b17b7064
2018-08-21 16:05:54 +00:00

17 lines
302 B
PHP

<?php
class AbuseFilterSuppressLogFormatter extends LogFormatter {
/**
* @return string
*/
protected function getMessageKey() {
if ( $this->entry->getSubtype() === 'unhide-afl' ) {
return 'abusefilter-log-entry-unsuppress';
} else {
return 'abusefilter-log-entry-suppress';
}
}
}