From: Alexandre Emsenhuber Date: Tue, 23 Jul 2013 09:34:25 +0000 (+0200) Subject: Make "Special:FilePath?file=.." work again X-Git-Tag: 1.31.0-rc.0~19142 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=b03a87204c73d8f03d9464539fbc0e278f05c19a;p=lhc%2Fweb%2Fwiklou.git Make "Special:FilePath?file=.." work again bug: 51542 Change-Id: I2418e33ebd91dc0dc6968ba003a46857ec7524d3 --- diff --git a/includes/specials/SpecialFilepath.php b/includes/specials/SpecialFilepath.php index 57e552b37c..e7ced52aa2 100644 --- a/includes/specials/SpecialFilepath.php +++ b/includes/specials/SpecialFilepath.php @@ -35,7 +35,8 @@ class SpecialFilepath extends RedirectSpecialPage { // implement by redirecting through Special:Redirect/file function getRedirect( $par ) { - return SpecialPage::getSafeTitleFor( 'Redirect', 'file/' . $par ); + $file = $par ?: $this->getRequest()->getText( 'file' ); + return SpecialPage::getSafeTitleFor( 'Redirect', 'file/' . $file ); } protected function getGroupName() {