MediaWiki  REL1_23
SpecialFilepath.php
Go to the documentation of this file.
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 
00040         return SpecialPage::getSafeTitleFor( 'Redirect', 'file/' . $file );
00041     }
00042 
00043     protected function getGroupName() {
00044         return 'media';
00045     }
00046 }