aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/acp/acp_help_phpbb.php17
1 files changed, 8 insertions, 9 deletions
diff --git a/phpBB/includes/acp/acp_help_phpbb.php b/phpBB/includes/acp/acp_help_phpbb.php
index bcbe61adb8..fa4de60456 100644
--- a/phpBB/includes/acp/acp_help_phpbb.php
+++ b/phpBB/includes/acp/acp_help_phpbb.php
@@ -87,20 +87,19 @@ class acp_help_phpbb
if ($config['help_send_statistics'])
{
- $client = new \Guzzle\Http\Client(
- $this->u_action,
- array(
+ $client = new \GuzzleHttp\Client([
'timeout' => 6,
'connect_timeout' => 6,
- )
- );
+ ]);
- $collect_request = $client->post($collect_url, [], [
- 'systemdata' => $collector->get_data_for_form(),
+ $response = $client->post($collect_url, [
+ 'body' => [
+ 'systemdata' => $collector->get_data_for_form(),
+ ]
]);
+ $response_status = $response->getStatusCode();
- $response = $collect_request->send();
- if ($response->isSuccessful())
+ if ($response_status >= 200 && $response_status < 300)
{
trigger_error($user->lang('THANKS_SEND_STATISTICS') . adm_back_link($this->u_action));
}