Use getTitle() here, it's cleaner.
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 7 Apr 2009 16:42:35 +0000 (16:42 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 7 Apr 2009 16:42:35 +0000 (16:42 +0000)
includes/specials/SpecialImport.php

index c8f15ae..18054d6 100644 (file)
@@ -136,7 +136,7 @@ class SpecialImport extends SpecialPage {
                if( !$wgUser->isAllowed( 'import' ) && !$wgUser->isAllowed( 'importupload' ) )
                        return $wgOut->permissionRequired( 'import' );
 
-               $action = SpecialPage::getTitleFor( 'Import' )->getLocalUrl( 'action=submit' );
+               $action = $this->getTitle()->getLocalUrl( 'action=submit' );
 
                if( $wgUser->isAllowed( 'importupload' ) ) {
                        $wgOut->addWikiMsg( "importtext" );