Fix use of parser-cache-saved-timestamp, apparently the code was all there, hidden...
authorDomas Mituzas <midom@users.mediawiki.org>
Tue, 8 Sep 2009 15:21:12 +0000 (15:21 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Tue, 8 Sep 2009 15:21:12 +0000 (15:21 +0000)
includes/Article.php
includes/Skin.php

index 7a29c6a..82b52dd 100644 (file)
@@ -1896,6 +1896,7 @@ class Article {
 
                $dbw = wfGetDB( DB_MASTER );
                $now = wfTimestampNow();
+               $this->mTimestamp=$now;
 
                if( $flags & EDIT_UPDATE ) {
                        # Update article, but only if changed.
index 37392b6..4b5cdc0 100644 (file)
@@ -1509,7 +1509,7 @@ END;
 
        function lastModified() {
                global $wgLang, $wgArticle;
-               if( $this->mRevisionId ) {
+               if( $this->mRevisionId && $this->mRevisionId != $wgArticle->getLatest()) {
                        $timestamp = Revision::getTimestampFromId( $wgArticle->getTitle(), $this->mRevisionId );
                } else {
                        $timestamp = $wgArticle->getTimestamp();