Add $revision to TitleMoveCompleting for completeness
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 17 Dec 2015 03:11:15 +0000 (19:11 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 17 Dec 2015 03:11:15 +0000 (19:11 -0800)
Follow up to 9cc2f62bf5ae.

Change-Id: Ibb48f6673b9be1863563262fff8bedc5aed7926c

docs/hooks.txt
includes/MovePage.php

index 6afeab8..c928aae 100644 (file)
@@ -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.
index 936b94a..fb0ca8c 100644 (file)
@@ -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__ );