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
Document Special:Diff and Special:PermanentLink
[lhc/web/wiklou.git]
/
includes
/
specialpage
/
RedirectSpecialPage.php
diff --git
a/includes/specialpage/RedirectSpecialPage.php
b/includes/specialpage/RedirectSpecialPage.php
index
b1ddacf
..
4e5da97
100644
(file)
--- a/
includes/specialpage/RedirectSpecialPage.php
+++ b/
includes/specialpage/RedirectSpecialPage.php
@@
-41,7
+41,7
@@
abstract class RedirectSpecialPage extends UnlistedSpecialPage {
$query = $this->getRedirectQuery();
// Redirect to a page title with possible query parameters
if ( $redirect instanceof Title ) {
$query = $this->getRedirectQuery();
// Redirect to a page title with possible query parameters
if ( $redirect instanceof Title ) {
- $url = $redirect->getFullU
RL
( $query );
+ $url = $redirect->getFullU
rlForRedirect
( $query );
$this->getOutput()->redirect( $url );
return $redirect;
$this->getOutput()->redirect( $url );
return $redirect;
@@
-52,8
+52,7
@@
abstract class RedirectSpecialPage extends UnlistedSpecialPage {
return $redirect;
} else {
return $redirect;
} else {
- $class = static::class;
- throw new MWException( "RedirectSpecialPage $class doesn't redirect!" );
+ $this->showNoRedirectPage();
}
}
}
}
@@
-106,6
+105,11
@@
abstract class RedirectSpecialPage extends UnlistedSpecialPage {
public function personallyIdentifiableTarget() {
return false;
}
public function personallyIdentifiableTarget() {
return false;
}
+
+ protected function showNoRedirectPage() {
+ $class = static::class;
+ throw new MWException( "RedirectSpecialPage $class doesn't redirect!" );
+ }
}
/**
}
/**