From 6ae93733c3376914098c82fc30c6714c26e2cd5c Mon Sep 17 00:00:00 2001 From: Lucas Werkmeister Date: Thu, 20 Jun 2019 12:01:03 +0200 Subject: [PATCH] Fix wfLocalFile() replacement 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/pagers/ImageListPager.php b/includes/specials/pagers/ImageListPager.php index 36909aa086..2d3b6b291f 100644 --- a/includes/specials/pagers/ImageListPager.php +++ b/includes/specials/pagers/ImageListPager.php @@ -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(); -- 2.20.1