* Permalink Id hook redundant; output Id set
* Use output Id for lastmod link to remove duplication
* Combine some hooked functions
* Mark visibility
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 );