From: Aaron Schulz Date: Sun, 6 Jul 2008 11:01:32 +0000 (+0000) Subject: FlaggedRevs refactoring: X-Git-Tag: 1.31.0-rc.0~46700 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=6b82419bd4109d2008fa44fe5b8f3c2b6459a744;p=lhc%2Fweb%2Fwiklou.git FlaggedRevs refactoring: * Permalink Id hook redundant; output Id set * Use output Id for lastmod link to remove duplication * Combine some hooked functions * Mark visibility --- diff --git a/includes/Skin.php b/includes/Skin.php index 3f8c6b983f..176f4490b0 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1204,8 +1204,11 @@ END; function lastModified() { global $wgLang, $wgArticle; - - $timestamp = $wgArticle->getTimestamp(); + if( $this->mRevisionId ) { + $timestamp = Revision::getTimestampFromId( $this->mRevisionId, $wgArticle->getId() ); + } else { + $timestamp = $wgArticle->getTimestamp(); + } if ( $timestamp ) { $d = $wgLang->date( $timestamp, true ); $t = $wgLang->time( $timestamp, true );