From 6b82419bd4109d2008fa44fe5b8f3c2b6459a744 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 6 Jul 2008 11:01:32 +0000 Subject: [PATCH] FlaggedRevs refactoring: * Permalink Id hook redundant; output Id set * Use output Id for lastmod link to remove duplication * Combine some hooked functions * Mark visibility --- includes/Skin.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 ); -- 2.20.1