Change-Id: Ib28354fde2dc084ae9aff8cfa960785bb2012933
*/
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;
if ( $this->mQueryDone ) {
return;
}
- $this->mImg = $this->mImagePage->getFile(); // ensure loading
+ $this->mImg = $this->mImagePage->getPage()->getFile(); // ensure loading
if ( !$this->mImg->exists() ) {
return;
}