r25199 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25198‎ | r25199 | r25200 >
Date:15:55, 27 August 2007
Author:robchurch
Status:old
Tags:
Comment:
Show relevant deletion log lines
Modified paths:
  • /trunk/phase3/includes/FileDeleteForm.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/FileDeleteForm.php
@@ -90,8 +90,8 @@
9191 return;
9292 }
9393
94 - // Show the form
95 - $this->showForm();
 94+ $this->showForm();
 95+ $this->showLogEntries();
9696 }
9797
9898 /**
@@ -115,6 +115,25 @@
116116 }
117117
118118 /**
 119+ * Show deletion log fragments pertaining to the current file
 120+ */
 121+ private function showLogEntries() {
 122+ global $wgOut;
 123+ $wgOut->addHtml( '<h2>' . htmlspecialchars( LogPage::logName( 'delete' ) ) . "</h2>\n" );
 124+ $reader = new LogViewer(
 125+ new LogReader(
 126+ new FauxRequest(
 127+ array(
 128+ 'type' => 'delete',
 129+ 'page' => $this->title->getPrefixedText(),
 130+ )
 131+ )
 132+ )
 133+ );
 134+ $reader->showList( $wgOut );
 135+ }
 136+
 137+ /**
119138 * Prepare a message referring to the file being deleted,
120139 * showing an appropriate message depending upon whether
121140 * it's a current file or an old version

Follow-up revisions

RevisionCommit summaryAuthorDate
r25223Merged revisions 25126-25214 via svnmerge from...david07:39, 28 August 2007

Status & tagging log