Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -211,6 +211,8 @@ |
212 | 212 | language |
213 | 213 | * (bug 33454) ISO-8601 week-based year number (format character 'o') is now |
214 | 214 | calculated correctly with respect to timezone |
| 215 | +* (bug 32219) InstantCommons now fetches content from Wikimedia Commons using |
| 216 | + HTTPS when the local wiki is served over HTTPS |
215 | 217 | |
216 | 218 | === API changes in 1.19 === |
217 | 219 | * (bug 19838) siprop=interwikimap can now use the interwiki cache. |
Index: trunk/phase3/includes/Setup.php |
— | — | @@ -192,7 +192,9 @@ |
193 | 193 | $wgForeignFileRepos[] = array( |
194 | 194 | 'class' => 'ForeignAPIRepo', |
195 | 195 | 'name' => 'wikimediacommons', |
196 | | - 'apibase' => '//commons.wikimedia.org/w/api.php', |
| 196 | + 'apibase' => WebRequest::detectProtocol() === 'https' ? |
| 197 | + 'https://commons.wikimedia.org/w/api.php' : |
| 198 | + 'http://commons.wikimedia.org/w/api.php', |
197 | 199 | 'hashLevels' => 2, |
198 | 200 | 'fetchDescription' => true, |
199 | 201 | 'descriptionCacheExpiry' => 43200, |