Add parameters to ArticleDeleteComplete.
authordaniel <daniel.kinzler@wikimedia.de>
Thu, 20 Sep 2012 19:15:43 +0000 (21:15 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Thu, 20 Sep 2012 19:15:43 +0000 (21:15 +0200)
Supply more information about the deleted revision to hook functions.

Change-Id: Ie1fc967d074deb918c824e10398bcb0ec2d557ac

docs/hooks.txt
includes/WikiPage.php

index 9b8d3a9..a4b4e57 100644 (file)
@@ -468,6 +468,8 @@ $article: the WikiPage that was deleted
 $user: the user that deleted the article
 $reason: the reason the article was deleted
 $id: id of the article that was deleted
+$content: the Content of the deleted page
+$logEntry: the ManualLogEntry used to record the deletion
 
 'ArticleEditUpdateNewTalk': before updating user_newtalk when a user talk page
 was changed
index a032028..5d7bb7c 100644 (file)
@@ -2572,7 +2572,7 @@ class WikiPage extends Page implements IDBAccessObject {
                        $dbw->commit( __METHOD__ );
                }
 
-               wfRunHooks( 'ArticleDeleteComplete', array( &$this, &$user, $reason, $id ) );
+               wfRunHooks( 'ArticleDeleteComplete', array( &$this, &$user, $reason, $id, $content, $logEntry ) );
                $status->value = $logid;
                return $status;
        }