From: Aaron Schulz Date: Wed, 21 May 2008 00:28:13 +0000 (+0000) Subject: Move this till after ID set X-Git-Tag: 1.31.0-rc.0~47502 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=def840161ffd74c421e1d60431270f51cce34dd3;p=lhc%2Fweb%2Fwiklou.git Move this till after ID set --- diff --git a/includes/Article.php b/includes/Article.php index 9b2e48cc75..1d58f880f1 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1517,10 +1517,10 @@ class Article { 'text' => $text ) ); $revisionId = $revision->insertOn( $dbw ); - - wfRunHooks( 'newRevisionFromEditComplete', array($this->mTitle, $revision, false) ); $this->mTitle->resetArticleID( $newid ); + + wfRunHooks( 'newRevisionFromEditComplete', array($this->mTitle, $revision, false) ); # Update the page record with revision data $this->updateRevisionOn( $dbw, $revision, 0 );