From e84ef7ce50c4cb309bcfd7f4d80b9e5ed0677225 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 6 Mar 2007 00:10:37 +0000 Subject: [PATCH] *Show deletion log on confirmdelete (bug 9118) (patch by Tango42) --- includes/Article.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/includes/Article.php b/includes/Article.php index 93cb029dbe..4cedaa0978 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1986,6 +1986,23 @@ class Article { \n" ); $wgOut->returnToMain( false ); + + $this->showLogExtract( $wgOut ); + } + + + /** + * Fetch deletion log + */ + function showLogExtract( &$out ) { + # Show relevant lines from the deletion log: + $out->addHTML( "

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

\n" ); + $logViewer = new LogViewer( + new LogReader( + new FauxRequest( + array( 'page' => $this->mTitle->getPrefixedText(), + 'type' => 'delete' ) ) ) ); + $logViewer->showList( $out ); } -- 2.20.1