From aaffc0a7c0bea851d0d96815e79a3a54b2427a75 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 9 Jul 2008 12:27:34 +0000 Subject: [PATCH] Fix regression from r37158, Article::lastModified() now works on non-mySQL schemas again. Patch by OverlordQ. --- RELEASE-NOTES | 2 ++ includes/Skin.php | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 8e0e7146a3..acea80d9eb 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -427,6 +427,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 14745) Image moving works on sites that transform thumbnails via 404 * (bug 2186) Document.write() in wikibits caused failures when using application/xhtml+xml. The calls to this have been removed. +* (bug 14764) Fix regression in from Article::lastModified(), failed to work + on non-mySQL schemas. === API changes in 1.13 === diff --git a/includes/Skin.php b/includes/Skin.php index a9e44ab4d9..9627d9ea9f 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1205,7 +1205,8 @@ END; function lastModified() { global $wgLang, $wgArticle; if( $this->mRevisionId ) { - $timestamp = Revision::getTimestampFromId( $this->mRevisionId, $wgArticle->getId() ); + $timestamp = wfTimestamp( TS_MW, + Revision::getTimestampFromId( $this->mRevisionId, $wgArticle->getId() ) ); } else { $timestamp = $wgArticle->getTimestamp(); } -- 2.20.1