aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_help_phpbb.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-02-12 12:28:21 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-12-03 14:20:28 +0100
commitcba4f4f568028d2eb019ddde0eded62799e1b377 (patch)
tree780b73bc7bd421a7189b0b8cccbddf599b0bb481 /phpBB/includes/acp/acp_help_phpbb.php
parent4451db9f225d7a0e8a12503f0ff2f1393ee42467 (diff)
downloadforums-cba4f4f568028d2eb019ddde0eded62799e1b377.tar
forums-cba4f4f568028d2eb019ddde0eded62799e1b377.tar.gz
forums-cba4f4f568028d2eb019ddde0eded62799e1b377.tar.bz2
forums-cba4f4f568028d2eb019ddde0eded62799e1b377.tar.xz
forums-cba4f4f568028d2eb019ddde0eded62799e1b377.zip
[ticket/14492] Use new guzzlehttp client
PHPBB3-14492
Diffstat (limited to 'phpBB/includes/acp/acp_help_phpbb.php')
-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));
}