X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialFilepath.php;h=49caaa3a1df980d6e2693715ecc89d1734560eaa;hb=cb58676cfb4c46d1ead641d8c59b3d6bb9c96104;hp=93232117e17495e3ec61cb4b8a4fa27d55156c81;hpb=96a8ab6928b3e0be884c33eed8a1febf6fc4c31e;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 ) {