Merge "maintenance: Script to rename titles for Unicode uppercasing changes"
[lhc/web/wiklou.git] / 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();