From: Aaron Schulz Date: Fri, 30 May 2008 21:42:05 +0000 (+0000) Subject: Use proper title to give to hook X-Git-Tag: 1.31.0-rc.0~47279 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=39eb10b98b85fba341981a3aed62ea71c1f0ff5f;p=lhc%2Fweb%2Fwiklou.git Use proper title to give to hook --- diff --git a/includes/Title.php b/includes/Title.php index a9fff64b99..4ffcd981c5 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2616,7 +2616,7 @@ class Title { $nullRevision = Revision::newNullRevision( $dbw, $oldid, $comment, true ); $nullRevId = $nullRevision->insertOn( $dbw ); - $article = new Article( $nt ); + $article = new Article( $this ); wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, false) ); # Change the name of the target page: @@ -2712,7 +2712,7 @@ class Title { $nullRevision = Revision::newNullRevision( $dbw, $oldid, $comment, true ); $nullRevId = $nullRevision->insertOn( $dbw ); - $article = new Article( $nt ); + $article = new Article( $this ); wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, false) ); # Rename page entry