Index: trunk/phase3/includes/installer/Installer.php |
— | — | @@ -1150,7 +1150,13 @@ |
1151 | 1151 | break; |
1152 | 1152 | } |
1153 | 1153 | |
1154 | | - $text = Http::get( $url . $file, array( 'timeout' => 3 ) ); |
| 1154 | + try { |
| 1155 | + $text = Http::get( $url . $file, array( 'timeout' => 3 ) ); |
| 1156 | + } |
| 1157 | + catch( MWException $e ) { |
| 1158 | + // Http::get throws with allow_url_fopen = false and no curl extension. |
| 1159 | + $text = null; |
| 1160 | + } |
1155 | 1161 | unlink( $dir . $file ); |
1156 | 1162 | |
1157 | 1163 | if ( $text == 'exec' ) { |