Merge "Remove register_globals and magic_quotes_* checks"
[lhc/web/wiklou.git] / includes / page / ImageHistoryList.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;