* Clear newtalk marker on diff links with explicit current revision number
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 10 Sep 2006 21:46:54 +0000 (21:46 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 10 Sep 2006 21:46:54 +0000 (21:46 +0000)
RELEASE-NOTES
includes/Article.php

index 614601a..5699aca 100644 (file)
@@ -191,6 +191,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 6888) PHP error for call to getTimestamp() on bad input to Special:Revisiondelete
 * (bug 7252) Use dvipng support in texvc math rastrization. dvipng is required if texvc is rebuilt.
 * (bug 7279) Use wfBaseName in place of basename() in more places
+* Clear newtalk marker on diff links with explicit current revision number
 
 
 == Languages updated ==
index 368210f..f32e15e 100644 (file)
@@ -658,8 +658,10 @@ class Article {
                        // DifferenceEngine directly fetched the revision:
                        $this->mRevIdFetched = $de->mNewid;
                        $de->showDiffPage();
-
-                       if( $diff == 0 ) {
+                       
+                       // Needed to get the page's current revision
+                       $this->loadPageData();
+                       if( $diff == 0 || $diff == $this->mLatest ) {
                                # Run view updates for current revision only
                                $this->viewUpdates();
                        }