X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialFilepath.php;h=542589f333d4634863b71f95077dd9d8863c2bec;hb=35d9ad550f2f443455b3b76495d9cebfafdfaf37;hp=93232117e17495e3ec61cb4b8a4fa27d55156c81;hpb=09257f52e53e9f0bebf950999c89ad5a6d83e903;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialFilepath.php b/includes/specials/SpecialFilepath.php index 93232117e1..542589f333 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' ); } - // 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 ) {