Fix regression from r37158, Article::lastModified() now works on non-mySQL schemas...
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 9 Jul 2008 12:27:34 +0000 (12:27 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 9 Jul 2008 12:27:34 +0000 (12:27 +0000)
RELEASE-NOTES
includes/Skin.php

index 8e0e714..acea80d 100644 (file)
@@ -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 ===
 
index a9e44ab..9627d9e 100644 (file)
@@ -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();
                }