From 87f54c37f1e6eb27eff2674003457301aa335e38 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 16 Dec 2015 19:11:15 -0800 Subject: [PATCH] Add $revision to TitleMoveCompleting for completeness Follow up to 9cc2f62bf5ae. Change-Id: Ibb48f6673b9be1863563262fff8bedc5aed7926c --- docs/hooks.txt | 3 ++- includes/MovePage.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index 6afeab8a4f..c928aaef07 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -3040,7 +3040,7 @@ $user: user who does the move $pageid: database ID of the page that's been moved $redirid: database ID of the created redirect $reason: reason for the move -$revision: the revision created by the move +$revision: the Revision created by the move 'TitleMoveCompleting': After moving an article (title), pre-commit. $old: old title @@ -3049,6 +3049,7 @@ $user: user who did the move $pageid: database ID of the page that's been moved $redirid: database ID of the created redirect $reason: reason for the move +$revision: the Revision created by the move 'TitleQuickPermissions': Called from Title::checkQuickPermissions to add to or override the quick permissions check. diff --git a/includes/MovePage.php b/includes/MovePage.php index 936b94a1eb..fb0ca8c89a 100644 --- a/includes/MovePage.php +++ b/includes/MovePage.php @@ -371,7 +371,8 @@ class MovePage { Hooks::run( 'TitleMoveCompleting', - array( $this->oldTitle, $this->newTitle, $user, $pageid, $redirid, $reason ) + array( $this->oldTitle, $this->newTitle, + $user, $pageid, $redirid, $reason, $nullRevision ) ); $dbw->endAtomic( __METHOD__ ); -- 2.20.1