X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FTitle.php;h=70d2baa5af08a3de6aac2da2d872fe979c176c7b;hb=d8545438bfdd2cb4fb5c62c90078d9bd9e8b4c12;hp=4dc03720dda18a67cf893ff6714dd46b2b56500d;hpb=23bb3d1cb48483ec6d6d94e90f99f08fef1d5865;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Title.php b/includes/Title.php index 4dc03720dd..70d2baa5af 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -3859,7 +3859,7 @@ class Title { } # Save a null revision in the page's history notifying of the move - $nullRevision = Revision::newNullRevision( $dbw, $oldid, $comment, true ); + $nullRevision = Revision::newNullRevision( $dbw, $oldid, $comment, true, $wgUser ); if ( !is_object( $nullRevision ) ) { throw new MWException( 'No valid null revision produced in ' . __METHOD__ ); } @@ -3906,6 +3906,8 @@ class Title { $redirectRevision = new Revision( array( 'title' => $this, // for determining the default content model 'page' => $newid, + 'user_text' => $wgUser->getName(), + 'user' => $wgUser->getId(), 'comment' => $comment, 'content' => $redirectContent ) ); $redirectRevision->insertOn( $dbw );