Be sure to use the latest rev id and not whatever getRevIdFetched() could be
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 10 Jan 2011 08:33:19 +0000 (08:33 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 10 Jan 2011 08:33:19 +0000 (08:33 +0000)
includes/Article.php

index bb0c3fd..2d673af 100644 (file)
@@ -2211,7 +2211,7 @@ class Article {
                                $status->warning( 'edit-no-change' );
                                $revision = null;
                                // Keep the same revision ID, but do some updates on it
-                               $revisionId = $this->getRevIdFetched();
+                               $revisionId = $this->getLatest();
                                // Update page_touched, this is usually implicit in the page update
                                // Other cache updates are done in onArticleEdit()
                                $this->mTitle->invalidateCache();