Index: trunk/extensions/Translate/utils/TranslationHelpers.php |
— | — | @@ -449,7 +449,13 @@ |
450 | 450 | $url = wfExpandUrl( $url ); |
451 | 451 | |
452 | 452 | $options['method'] = 'GET'; |
453 | | - $req = HttpRequest::factory( $url, $options ); |
| 453 | + |
| 454 | + if ( class_exists( 'MWHttpRequest' ) ) { |
| 455 | + $req = MWHttpRequest::factory( $url, $options ); |
| 456 | + } else { |
| 457 | + $req = HttpRequest::factory( $url, $options ); |
| 458 | + } |
| 459 | + |
454 | 460 | $status = $req->execute(); |
455 | 461 | |
456 | 462 | if ( !$status->isOK() ) { |