Merge "Add $revision to TitleMoveCompleting for completeness"

This commit is contained in:
jenkins-bot 2015-12-21 23:01:31 +00:00 committed by Gerrit Code Review
commit 92a481e8a2
2 changed files with 4 additions and 2 deletions

View 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.

View 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__ );