Merge "Reduce RC table contention for file deletion"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 16 Jun 2015 00:12:43 +0000 (00:12 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 16 Jun 2015 00:12:43 +0000 (00:12 +0000)
includes/Setup.php

index 70c935d..8462f68 100644 (file)
@@ -236,9 +236,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' => 'https://commons.wikimedia.org/w/api.php',
                'hashLevels' => 2,
                'fetchDescription' => true,
                'descriptionCacheExpiry' => 43200,