From e06c5ee69368e190a259558033dd94463b390389 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 12 Feb 2009 20:06:05 +0000 Subject: [PATCH] Added suppression log entries (if user can see them) --- includes/specials/SpecialUndelete.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/specials/SpecialUndelete.php b/includes/specials/SpecialUndelete.php index 54a317c426..e032d880ac 100644 --- a/includes/specials/SpecialUndelete.php +++ b/includes/specials/SpecialUndelete.php @@ -996,6 +996,11 @@ class UndeleteForm { # Show relevant lines from the deletion log: $wgOut->addHTML( Xml::element( 'h2', null, LogPage::logName( 'delete' ) ) . "\n" ); LogEventsList::showLogExtract( $wgOut, 'delete', $this->mTargetObj->getPrefixedText() ); + # Show relevant lines from the suppression log: + if( $wgUser->isAllowed( 'suppressionlog' ) ) { + $wgOut->addHTML( Xml::element( 'h2', null, LogPage::logName( 'suppress' ) ) . "\n" ); + LogEventsList::showLogExtract( $wgOut, 'suppress', $this->mTargetObj->getPrefixedText() ); + } if( $this->mAllowed && ( $haveRevisions || $haveFiles ) ) { # Format the user-visible controls (comment field, submission button) -- 2.20.1