X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialPermanentLink.php;h=53789c0da68b11b5c717b8c26161f414080571c1;hb=ff9f2fa33719753ff0c708f9b4a84c57593b9e58;hp=17115e8863ddd435ab4cbc2d845035a772fc03d2;hpb=2e040b99eda6c99cf472b3896f62d2f21315e808;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialPermanentLink.php b/includes/specials/SpecialPermanentLink.php index 17115e8863..53789c0da6 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(); } - 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