From 3e317fe9b3524cdc68c48f73ccb80b3afa2e3df8 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Tue, 7 Apr 2009 16:42:35 +0000 Subject: [PATCH] Use getTitle() here, it's cleaner. --- includes/specials/SpecialImport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialImport.php b/includes/specials/SpecialImport.php index c8f15ae1d0..18054d6cb2 100644 --- a/includes/specials/SpecialImport.php +++ b/includes/specials/SpecialImport.php @@ -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" ); -- 2.20.1