http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88969
Revision: 88969
Author: reedy
Date: 2011-05-27 12:32:04 +0000 (Fri, 27 May 2011)
Log Message:
-----------
MFB r88946
Modified Paths:
--------------
branches/REL1_18/phase3/includes/installer/Installer.php
Modified: branches/REL1_18/phase3/includes/installer/Installer.php
===================================================================
--- branches/REL1_18/phase3/includes/installer/Installer.php 2011-05-27
11:57:37 UTC (rev 88968)
+++ branches/REL1_18/phase3/includes/installer/Installer.php 2011-05-27
12:32:04 UTC (rev 88969)
@@ -1446,9 +1446,10 @@
$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() );
}
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs