dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Status::getMessage accidentially returning string instead of Message
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialFilepath.php
diff --git
a/includes/specials/SpecialFilepath.php
b/includes/specials/SpecialFilepath.php
index
57e552b
..
e7ced52
100644
(file)
--- 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 ) {
// 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() {
}
protected function getGroupName() {