Merge "Add $revision to TitleMoveCompleting for completeness"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 21 Dec 2015 23:01:31 +0000 (23:01 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 21 Dec 2015 23:01:31 +0000 (23:01 +0000)
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__ );