r47197 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47196‎ | r47197 | r47198 >
Date:20:06, 12 February 2009
Author:aaron
Status:deferred
Tags:
Comment:
Added suppression log entries (if user can see them)
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUndelete.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUndelete.php
@@ -996,6 +996,11 @@
997997 # Show relevant lines from the deletion log:
998998 $wgOut->addHTML( Xml::element( 'h2', null, LogPage::logName( 'delete' ) ) . "\n" );
999999 LogEventsList::showLogExtract( $wgOut, 'delete', $this->mTargetObj->getPrefixedText() );
 1000+ # Show relevant lines from the suppression log:
 1001+ if( $wgUser->isAllowed( 'suppressionlog' ) ) {
 1002+ $wgOut->addHTML( Xml::element( 'h2', null, LogPage::logName( 'suppress' ) ) . "\n" );
 1003+ LogEventsList::showLogExtract( $wgOut, 'suppress', $this->mTargetObj->getPrefixedText() );
 1004+ }
10001005
10011006 if( $this->mAllowed && ( $haveRevisions || $haveFiles ) ) {
10021007 # Format the user-visible controls (comment field, submission button)

Status & tagging log