FlaggedRevs refactoring:
authorAaron Schulz <aaron@users.mediawiki.org>
Sun, 6 Jul 2008 11:01:32 +0000 (11:01 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sun, 6 Jul 2008 11:01:32 +0000 (11:01 +0000)
* 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

index 3f8c6b9..176f449 100644 (file)
@@ -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 );