Page MenuHomePhabricator
Authored By
bzimport
Nov 21 2014, 9:40 PM
Size
808 B
Referenced Files
None
Subscribers
None

my.patch

Index: Article.php
===================================================================
--- Article.php (revision 20126)
+++ Article.php (working copy)
@@ -1986,10 +1986,27 @@
</form>\n" );
$wgOut->returnToMain( false );
+
+ $this->showLogExtract( $wgOut );
}
/**
+ * Fetch deletion log
+ */
+ function showLogExtract( &$out ) {
+ # Show relevant lines from the deletion log:
+ $out->addHTML( "<h2>" . htmlspecialchars( LogPage::logName( 'delete' ) ) . "</h2>\n" );
+ $logViewer = new LogViewer(
+ new LogReader(
+ new FauxRequest(
+ array( 'page' => $this->mTitle->getPrefixedText(),
+ 'type' => 'delete' ) ) ) );
+ $logViewer->showList( $out );
+ }
+
+
+ /**
* Perform a deletion and output success or failure messages
*/
function doDelete( $reason ) {

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3455
Default Alt Text
my.patch (808 B)

Event Timeline