5 use GuzzleHttp\Client as GuzzleClient;
23 RequestOptions::TIMEOUT => 5,
24 RequestOptions::HTTP_ERRORS =>
false,
25 RequestOptions::VERIFY => (bool)
elgg_extract(
'verify_ssl', $proxy_config,
true),
32 $host =
rtrim($host,
':') .
":{$port}";
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
Helper class to construct a Guzzle Client with the correct defaults.
__construct(array $options=[])
{}
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if($who_can_change_language=== 'nobody') elseif($who_can_change_language=== 'admin_only'&&!elgg_is_admin_logged_in()) $options