From c56af8a17c2ff50f36b29f7f841cfb918803b09a Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 27 May 2011 11:43:33 +0000 Subject: [PATCH] MFB r88946 --- includes/installer/Installer.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index 3cfdfc36ed..f0ea4f670a 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -1455,10 +1455,11 @@ abstract class Installer { $params['language'] = $myLang; } - $res = Http::post( $this->mediaWikiAnnounceUrl, array( 'postData' => $params ) ); - if( !$res ) { - $s->warning( 'config-install-subscribe-fail' ); - } + $res = MWHttpRequest::factory( $this->mediaWikiAnnounceUrl, + array( 'method' => 'POST', 'postData' => $params ) )->execute(); + if( !$res->isOK() ) { + $s->warning( 'config-install-subscribe-fail', $res->getMessage() ); + } } /** -- 2.20.1