mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Merge "Show an extract of suppression log for Special:AbuseLog"
This commit is contained in:
commit
47acf13b4d
|
@ -242,8 +242,9 @@ class SpecialAbuseLog extends SpecialPage {
|
|||
* @param string $id
|
||||
*/
|
||||
public function showHideForm( $id ) {
|
||||
$output = $this->getOutput();
|
||||
if ( !$this->getUser()->isAllowed( 'abusefilter-hide-log' ) ) {
|
||||
$this->getOutput()->addWikiMsg( 'abusefilter-log-hide-forbidden' );
|
||||
$output->addWikiMsg( 'abusefilter-log-hide-forbidden' );
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -295,6 +296,11 @@ class SpecialAbuseLog extends SpecialPage {
|
|||
->addHiddenField( 'hide', $id )
|
||||
->setSubmitCallback( [ $this, 'saveHideForm' ] )
|
||||
->show();
|
||||
|
||||
// Show suppress log for this entry
|
||||
$suppressLogPage = new LogPage( 'suppress' );
|
||||
$output->addHTML( "<h2>" . $suppressLogPage->getName()->escaped() . "</h2>\n" );
|
||||
LogEventsList::showLogExtract( $output, 'suppress', $this->getPageTitle( $id ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue