MediaWiki
REL1_22
|
00001 <?php 00030 class SpecialFilepath extends RedirectSpecialPage { 00031 function __construct() { 00032 parent::__construct( 'Filepath' ); 00033 $this->mAllowedRedirectParams = array( 'width', 'height' ); 00034 } 00035 00036 // implement by redirecting through Special:Redirect/file 00037 function getRedirect( $par ) { 00038 $file = $par ?: $this->getRequest()->getText( 'file' ); 00039 return SpecialPage::getSafeTitleFor( 'Redirect', 'file/' . $file ); 00040 } 00041 00042 protected function getGroupName() { 00043 return 'media'; 00044 } 00045 }