Added suppression log entries (if user can see them)
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 12 Feb 2009 20:06:05 +0000 (20:06 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 12 Feb 2009 20:06:05 +0000 (20:06 +0000)
includes/specials/SpecialUndelete.php

index 54a317c..e032d88 100644 (file)
@@ -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)