From 8f479e2e45b87b4e6d6308bcde0a296d7f6e4a4a Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 20 Sep 2012 21:15:43 +0200 Subject: [PATCH] Add parameters to ArticleDeleteComplete. Supply more information about the deleted revision to hook functions. Change-Id: Ie1fc967d074deb918c824e10398bcb0ec2d557ac --- docs/hooks.txt | 2 ++ includes/WikiPage.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index 9b8d3a913c..a4b4e571f9 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -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 diff --git a/includes/WikiPage.php b/includes/WikiPage.php index a032028144..5d7bb7c19c 100644 --- a/includes/WikiPage.php +++ b/includes/WikiPage.php @@ -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; } -- 2.20.1