From: Domas Mituzas Date: Tue, 8 Sep 2009 15:21:12 +0000 (+0000) Subject: Fix use of parser-cache-saved-timestamp, apparently the code was all there, hidden... X-Git-Tag: 1.31.0-rc.0~39851 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=499e5e785144a17605484163194a69c1ecc2b8a4;p=lhc%2Fweb%2Fwiklou.git Fix use of parser-cache-saved-timestamp, apparently the code was all there, hidden behind a catch-all branch :-) --- 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();