From c6b3de7421e0a9d62cc11672bd74453663ea707a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C4=9Bj=20Grabovsk=C3=BD?= Date: Sun, 13 Jun 2010 13:08:57 +0000 Subject: [PATCH] (bug 23845) Special:ListFiles now uses correct file names without underscores --- RELEASE-NOTES | 1 + includes/specials/SpecialListfiles.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 50312b384a..69642c47e3 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -192,6 +192,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 23797) Xml::input() now allows '0' for the value parameter * (bug 23747) Make sure that on History pages, the RevDel button is not accidently activated when hitting enter. +* (bug 23845) Special:ListFiles now uses correct file names without underscores === API changes in 1.17 === * (bug 22738) Allow filtering by action type on query=logevent. diff --git a/includes/specials/SpecialListfiles.php b/includes/specials/SpecialListfiles.php index 09e61e76cd..bd1d0ae8ce 100644 --- a/includes/specials/SpecialListfiles.php +++ b/includes/specials/SpecialListfiles.php @@ -145,8 +145,8 @@ class ImageListPager extends TablePager { static $imgfile = null; if ( $imgfile === null ) $imgfile = wfMsg( 'imgfile' ); - $name = $this->mCurrentRow->img_name; - $link = $this->getSkin()->linkKnown( Title::makeTitle( NS_FILE, $name ), htmlspecialchars( $value ) ); + $filePage = Title::makeTitle( NS_FILE, $value ); + $link = $this->getSkin()->linkKnown( $filePage, htmlspecialchars( $filePage->getText() ) ); $image = wfLocalFile( $value ); $url = $image->getURL(); $download = Xml::element('a', array( 'href' => $url ), $imgfile ); -- 2.20.1