From 499e5e785144a17605484163194a69c1ecc2b8a4 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Tue, 8 Sep 2009 15:21:12 +0000 Subject: [PATCH] Fix use of parser-cache-saved-timestamp, apparently the code was all there, hidden behind a catch-all branch :-) --- includes/Article.php | 1 + includes/Skin.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index 7a29c6a67e..82b52dd34f 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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. diff --git a/includes/Skin.php b/includes/Skin.php index 37392b6a28..4b5cdc0aba 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -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(); -- 2.20.1