Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3888
my.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 9:40 PM
2014-11-21 21:40:30 (UTC+0)
Size
808 B
Referenced Files
None
Subscribers
None
my.patch
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3455
Default Alt Text
my.patch (808 B)
Attached To
Mode
T11118: Show deletion log fragments on deletion page
Attached
Detach File
Event Timeline
Log In to Comment