MFB r88946
authorSam Reed <reedy@users.mediawiki.org>
Fri, 27 May 2011 11:43:33 +0000 (11:43 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 27 May 2011 11:43:33 +0000 (11:43 +0000)
includes/installer/Installer.php

index 3cfdfc3..f0ea4f6 100644 (file)
@@ -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() );
+               }
        }
 
        /**