Get timestamp from WikiPage, instead of Article
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 6 Feb 2016 20:41:03 +0000 (21:41 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Sat, 6 Feb 2016 20:41:03 +0000 (21:41 +0100)
Change-Id: I5009695e5cde669c6bac0d0e116ab5e66a07813f

includes/page/Article.php

index e81fd96..f8e114a 100644 (file)
@@ -636,7 +636,7 @@ class Article implements Page {
                                        # the correct version information.
                                        $outputPage->setRevisionId( $this->getRevIdFetched() );
                                        # Preload timestamp to avoid a DB hit
-                                       $outputPage->setRevisionTimestamp( $this->getTimestamp() );
+                                       $outputPage->setRevisionTimestamp( $this->mPage->getTimestamp() );
 
                                        # Pages containing custom CSS or JavaScript get special treatment
                                        if ( $this->getTitle()->isCssOrJsPage() || $this->getTitle()->isCssJsSubpage() ) {