X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialPermanentLink.php;h=2bd3ab7d7650b894126dae335b604b1c1456f785;hb=3280e72c80c284c9761c63e4e6907a14d037c07a;hp=17115e8863ddd435ab4cbc2d845035a772fc03d2;hpb=2e040b99eda6c99cf472b3896f62d2f21315e808;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialPermanentLink.php b/includes/specials/SpecialPermanentLink.php index 17115e8863..2bd3ab7d76 100644 --- a/includes/specials/SpecialPermanentLink.php +++ b/includes/specials/SpecialPermanentLink.php @@ -27,12 +27,16 @@ * @ingroup SpecialPage */ class SpecialPermanentLink extends RedirectSpecialPage { - function __construct() { + public function __construct() { parent::__construct( 'PermanentLink' ); - $this->mAllowedRedirectParams = array(); + $this->mAllowedRedirectParams = []; } - function getRedirect( $subpage ) { + /** + * @param string|null $subpage + * @return Title|bool + */ + public function getRedirect( $subpage ) { $subpage = intval( $subpage ); if ( $subpage === 0 ) { # throw an error page when no subpage was given