Index: trunk/tools/mwmultiversion/multiversion/MWMultiVersion.php |
— | — | @@ -110,9 +110,14 @@ |
111 | 111 | * @param $docRoot the DocumentRoot for this wiki -- $_SERVER['DOCUMENT_ROOT'] |
112 | 112 | */ |
113 | 113 | private function setSiteInfoForWiki( $serverName, $docRoot ) { |
| 114 | + # The old secure.wikimedia.org gateway, set a specific env variable for us |
| 115 | + # to react differently. |
114 | 116 | $secure = getenv( 'MW_SECURE_HOST' ); |
| 117 | + |
115 | 118 | $matches = array(); |
116 | 119 | if ( $secure ) { |
| 120 | + // secure.wikimedia.org |
| 121 | + |
117 | 122 | if ( !preg_match('/^([^.]+)\.([^.]+)\./', $secure, $matches ) ) { |
118 | 123 | self::error( "Invalid hostname.\n" ); |
119 | 124 | } |
— | — | @@ -126,6 +131,8 @@ |
127 | 132 | $site = "wikipedia"; |
128 | 133 | } |
129 | 134 | } else { |
| 135 | + // Most requests ;) |
| 136 | + |
130 | 137 | $site = "wikipedia"; |
131 | 138 | if ( getenv( 'MW_LANG' ) ) { |
132 | 139 | # Language forced from some hacky script like extract2.php |