Aaron Schulz has uploaded a new change for review.
https://gerrit.wikimedia.org/r/259632
Change subject: Add $revision to TitleMoveCompleting for completeness
......................................................................
Add $revision to TitleMoveCompleting for completeness
Follow up to 9cc2f62bf5ae.
Change-Id: Ibb48f6673b9be1863563262fff8bedc5aed7926c
---
M docs/hooks.txt
M includes/MovePage.php
2 files changed, 4 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/32/259632/1
diff --git a/docs/hooks.txt b/docs/hooks.txt
index 6afeab8..c928aae 100644
--- a/docs/hooks.txt
+++ b/docs/hooks.txt
@@ -3040,7 +3040,7 @@
$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 @@
$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 936b94a..fb0ca8c 100644
--- a/includes/MovePage.php
+++ b/includes/MovePage.php
@@ -371,7 +371,8 @@
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__ );
--
To view, visit https://gerrit.wikimedia.org/r/259632
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibb48f6673b9be1863563262fff8bedc5aed7926c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits