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
Merge "Remove old WebResponse::setCookie() calling method"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialRedirect.php
diff --git
a/includes/specials/SpecialRedirect.php
b/includes/specials/SpecialRedirect.php
index
206e400
..
80dc797
100644
(file)
--- a/
includes/specials/SpecialRedirect.php
+++ b/
includes/specials/SpecialRedirect.php
@@
-99,7
+99,7
@@
class SpecialRedirect extends FormSpecialPage {
return null;
}
// Default behavior: Use the direct link to the file.
return null;
}
// Default behavior: Use the direct link to the file.
- $url = $file->getU
RL
();
+ $url = $file->getU
rl
();
$request = $this->getRequest();
$width = $request->getInt( 'width', -1 );
$height = $request->getInt( 'height', -1 );
$request = $this->getRequest();
$width = $request->getInt( 'width', -1 );
$height = $request->getInt( 'height', -1 );
@@
-110,7
+110,7
@@
class SpecialRedirect extends FormSpecialPage {
// ... and we can
if ( $mto && !$mto->isError() ) {
// ... change the URL to point to a thumbnail.
// ... and we can
if ( $mto && !$mto->isError() ) {
// ... change the URL to point to a thumbnail.
- $url = $mto->getU
RL
();
+ $url = $mto->getU
rl
();
}
}
}
}
@@
-272,7
+272,6
@@
class SpecialRedirect extends FormSpecialPage {
$url = $this->dispatchLog();
break;
default:
$url = $this->dispatchLog();
break;
default:
- $this->getOutput()->setStatusCode( 404 );
$url = null;
break;
}
$url = null;
break;
}
@@
-353,6
+352,10
@@
class SpecialRedirect extends FormSpecialPage {
$form->setMethod( 'get' );
}
$form->setMethod( 'get' );
}
+ protected function getDisplayFormat() {
+ return 'ooui';
+ }
+
/**
* Return an array of subpages that this special page will accept.
*
/**
* Return an array of subpages that this special page will accept.
*