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
shell: Optionally restrict commands' access with firejail
[lhc/web/wiklou.git]
/
includes
/
specialpage
/
RedirectSpecialPage.php
diff --git
a/includes/specialpage/RedirectSpecialPage.php
b/includes/specialpage/RedirectSpecialPage.php
index
9b5d5f4
..
8d39c99
100644
(file)
--- a/
includes/specialpage/RedirectSpecialPage.php
+++ b/
includes/specialpage/RedirectSpecialPage.php
@@
-35,6
+35,7
@@
abstract class RedirectSpecialPage extends UnlistedSpecialPage {
/**
* @param string|null $subpage
/**
* @param string|null $subpage
+ * @return Title|bool
*/
public function execute( $subpage ) {
$redirect = $this->getRedirect( $subpage );
*/
public function execute( $subpage ) {
$redirect = $this->getRedirect( $subpage );
@@
-52,8
+53,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
+106,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!" );
+ }
}
/**
}
/**