r53906 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53905‎ | r53906 | r53907 >
Date:21:32, 28 July 2009
Author:brion
Status:ok (Comments)
Tags:
Comment:
Check $wgServer instead of config-local $secure global to avoid borking local installs with the live hack
Modified paths:
  • /branches/wmf-deployment/api.php (modified) (history)

Diff [purge]

Index: branches/wmf-deployment/api.php
@@ -59,7 +59,7 @@
6060
6161 // Live-hack to let api.php work with secure.wikimedia.org
6262 // Andrew 2009-06-17
63 -if ($secure) {
 63+if (substr( $wgServer, 0, 5 ) == 'https') {
6464 $url = "/$site/$lang$url";
6565 }
6666 // End live hack

Comments

#Comment by Brion VIBBER (talk | contribs)   00:41, 15 September 2009

Has been superseded, no need to reapply.

Status & tagging log