From: Aaron Schulz Date: Thu, 17 Dec 2015 03:11:15 +0000 (-0800) Subject: Add $revision to TitleMoveCompleting for completeness X-Git-Tag: 1.31.0-rc.0~8591^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/supprimer.php?a=commitdiff_plain;h=87f54c37f1e6eb27eff2674003457301aa335e38;p=lhc%2Fweb%2Fwiklou.git Add $revision to TitleMoveCompleting for completeness Follow up to 9cc2f62bf5ae. Change-Id: Ibb48f6673b9be1863563262fff8bedc5aed7926c --- 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__ );