From e5167d224bd3a192b113d834055686cc7aeb622e Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 2 Jan 2012 15:31:28 +0000 Subject: [PATCH] simplify r107833 per CR, just use wfExpandUrl() --- includes/Setup.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/Setup.php b/includes/Setup.php index 87eccb4729..9cee0f2ea4 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -192,9 +192,7 @@ if ( $wgUseInstantCommons ) { $wgForeignFileRepos[] = array( 'class' => 'ForeignAPIRepo', 'name' => 'wikimediacommons', - 'apibase' => WebRequest::detectProtocol() === 'https' ? - 'https://commons.wikimedia.org/w/api.php' : - 'http://commons.wikimedia.org/w/api.php', + 'apibase' => wfExpandUrl( '//commons.wikimedia.org/w/api.php' ), 'hashLevels' => 2, 'fetchDescription' => true, 'descriptionCacheExpiry' => 43200, -- 2.20.1