Merge branch 'develop' into feature/1.2.x

Conflicts:
	lib/html.php
This commit is contained in:
Tony Roman committed 2017-11-19 08:20:39 -05:00
commit 711d362c19
7 files changed
+147 -63

No files matched your search

+13 -1
View File
@@ -4527,9 +4527,10 @@ function get_url_type() {
*
* @returns - an array of stream context options or false */
function get_default_contextoption($protocol = false, $options = false) {
$fgc_contextoption = false;
$timeout = read_config_option('script_timeout');
if (!$protocol) {
$protocol = get_url_type();
}
@@ -4544,11 +4545,22 @@ function get_default_contextoption($protocol = false, $options = false) {
);
}
if ($protocol == 'https') {
$fgc_contextoption['https'] = array(
'timeout' => $timeout
);
} elseif ($protocol == 'http') {
$fgc_contextoption['http'] = array(
'timeout' => $timeout
);
}
if (is_array($options)) {
$fgc_contextoption = array_replace_recursive($fgc_contextoption, $options);
}
$fgc_contextoption = api_plugin_hook_function('fgc_contextoption', $fgc_contextoption);
return $fgc_contextoption;
}