From: Lucas Werkmeister Date: Thu, 20 Jun 2019 10:01:03 +0000 (+0200) Subject: Fix wfLocalFile() replacement X-Git-Tag: 1.34.0-rc.0~1335^2 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=6ae93733c3376914098c82fc30c6714c26e2cd5c;p=lhc%2Fweb%2Fwiklou.git 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 --- 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();