X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialFilepath.php;h=49caaa3a1df980d6e2693715ecc89d1734560eaa;hb=7ececd89751310a7d46310b10ca80d5a0aa77528;hp=93232117e17495e3ec61cb4b8a4fa27d55156c81;hpb=e4b551ca0e4d36b45ef6319301fa962450cc5b17;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialFilepath.php b/includes/specials/SpecialFilepath.php index 93232117e1..49caaa3a1d 100644 --- a/includes/specials/SpecialFilepath.php +++ b/includes/specials/SpecialFilepath.php @@ -27,13 +27,18 @@ * @ingroup SpecialPage */ class SpecialFilepath extends RedirectSpecialPage { - function __construct() { + public function __construct() { parent::__construct( 'Filepath' ); - $this->mAllowedRedirectParams = array( 'width', 'height' ); + $this->mAllowedRedirectParams = [ 'width', 'height' ]; } - // implement by redirecting through Special:Redirect/file - function getRedirect( $par ) { + /** + * Implement by redirecting through Special:Redirect/file. + * + * @param string|null $subpage + * @return Title + */ + public function getRedirect( $par ) { $file = $par ?: $this->getRequest()->getText( 'file' ); if ( $file ) {