Fix wfLocalFile() replacement
authorLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Thu, 20 Jun 2019 10:01:03 +0000 (12:01 +0200)
committerLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Thu, 20 Jun 2019 10:01:03 +0000 (12:01 +0200)
This bit of ImageListPager used to call wfLocalFile(), but was
accidentally replaced with the replacement for wfFindFile() instead.

Bug: T226102
Change-Id: Id50a5359fe2353ae88012d1f5a3331f570b73922

includes/specials/pagers/ImageListPager.php

index 36909aa..2d3b6b2 100644 (file)
@@ -471,7 +471,7 @@ class ImageListPager extends TablePager {
                                        );
                                        $download = Xml::element(
                                                'a',
-                                               [ 'href' => $services->getRepoGroup()->findFile( $filePage )->getUrl() ],
+                                               [ 'href' => $services->getRepoGroup()->getLocalRepo()->newFile( $filePage )->getUrl() ],
                                                $imgfile
                                        );
                                        $download = $this->msg( 'parentheses' )->rawParams( $download )->escaped();