From: Rob Church Date: Mon, 27 Aug 2007 15:55:02 +0000 (+0000) Subject: Show relevant deletion log lines X-Git-Tag: 1.31.0-rc.0~51640 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=44331b16a8fbe2282d90bcf2b0b5733cca01f39d;p=lhc%2Fweb%2Fwiklou.git Show relevant deletion log lines --- diff --git a/includes/FileDeleteForm.php b/includes/FileDeleteForm.php index e2be53f63f..ee165cd19d 100644 --- a/includes/FileDeleteForm.php +++ b/includes/FileDeleteForm.php @@ -90,8 +90,8 @@ class FileDeleteForm { return; } - // Show the form - $this->showForm(); + $this->showForm(); + $this->showLogEntries(); } /** @@ -114,6 +114,25 @@ class FileDeleteForm { $wgOut->addHtml( $form ); } + /** + * Show deletion log fragments pertaining to the current file + */ + private function showLogEntries() { + global $wgOut; + $wgOut->addHtml( '

' . htmlspecialchars( LogPage::logName( 'delete' ) ) . "

\n" ); + $reader = new LogViewer( + new LogReader( + new FauxRequest( + array( + 'type' => 'delete', + 'page' => $this->title->getPrefixedText(), + ) + ) + ) + ); + $reader->showList( $wgOut ); + } + /** * Prepare a message referring to the file being deleted, * showing an appropriate message depending upon whether