Index: trunk/extensions/Deployment/includes/DistributionRepository.php |
— | — | @@ -146,14 +146,16 @@ |
147 | 147 | |
148 | 148 | $extensionParams = array(); |
149 | 149 | |
150 | | - foreach ( $extensions as $extensionName => $extensionVersion ) { |
151 | | - $extensionParams[] = urlencode( $extensionName ) . ';' . urlencode( $extensionVersion ); |
| 150 | + if ( count( $extensions ) > 0 ) { |
| 151 | + foreach ( $extensions as $extensionName => $extensionVersion ) { |
| 152 | + $extensionParams[] = urlencode( $extensionName ) . ';' . urlencode( $extensionVersion ); |
| 153 | + } |
| 154 | + |
| 155 | + $extensionParams = '&extensions=' . urlencode( implode( '|', $extensionParams ) ); |
152 | 156 | } |
153 | | - |
154 | | - $extensionParams = urlencode( implode( '|', $extensionParams ) ); |
155 | | - |
| 157 | + |
156 | 158 | $response = Http::get( |
157 | | - "$this->location?format=json&action=updates&mediawiki=$coreVersion&extensions=$extensionParams&state=$states", |
| 159 | + "$this->location?format=json&action=updates&mediawiki=$coreVersion{$extensionParams}&state=$states", |
158 | 160 | 'default', |
159 | 161 | array( 'sslVerifyHost' => true, 'sslVerifyCert' => true ) |
160 | 162 | ); |