Merge "Include the reason when firing the TitleMoveComplete hook"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 18 Feb 2014 11:17:52 +0000 (11:17 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 18 Feb 2014 11:17:52 +0000 (11:17 +0000)
docs/hooks.txt
includes/Title.php

index 627fcab..9268f83 100644 (file)
@@ -2539,6 +2539,7 @@ $nt: new title
 $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
 
 'TitleReadWhitelist': Called at the end of read permissions checks, just before
 adding the default error message if nothing allows the user to read the page. If
index 2862685..a705aaa 100644 (file)
@@ -3894,7 +3894,7 @@ class Title {
 
                $dbw->commit( __METHOD__ );
 
-               wfRunHooks( 'TitleMoveComplete', array( &$this, &$nt, &$wgUser, $pageid, $redirid ) );
+               wfRunHooks( 'TitleMoveComplete', array( &$this, &$nt, &$wgUser, $pageid, $redirid, $reason ) );
                return true;
        }