Merge "Get file from WikiFilePage, instead of ImagePage"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 11 Feb 2016 04:06:09 +0000 (04:06 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 11 Feb 2016 04:06:09 +0000 (04:06 +0000)
includes/page/ImageHistoryList.php
includes/page/ImageHistoryPseudoPager.php

index 32638a5..4c36729 100644 (file)
@@ -53,7 +53,7 @@ class ImageHistoryList extends ContextSource {
         */
        public function __construct( $imagePage ) {
                global $wgShowArchiveThumbnails;
-               $this->current = $imagePage->getFile();
+               $this->current = $imagePage->getPage()->getFile();
                $this->img = $imagePage->getDisplayedFile();
                $this->title = $imagePage->getTitle();
                $this->imagePage = $imagePage;
index e421d23..f541387 100644 (file)
@@ -111,7 +111,7 @@ class ImageHistoryPseudoPager extends ReverseChronologicalPager {
                if ( $this->mQueryDone ) {
                        return;
                }
-               $this->mImg = $this->mImagePage->getFile(); // ensure loading
+               $this->mImg = $this->mImagePage->getPage()->getFile(); // ensure loading
                if ( !$this->mImg->exists() ) {
                        return;
                }