From: Aaron Schulz Date: Thu, 12 Feb 2009 20:06:05 +0000 (+0000) Subject: Added suppression log entries (if user can see them) X-Git-Tag: 1.31.0-rc.0~42915 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=e06c5ee69368e190a259558033dd94463b390389;p=lhc%2Fweb%2Fwiklou.git Added suppression log entries (if user can see them) --- 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)