Skip to content
Snippets Groups Projects
Commit c20978de authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fix deprecated warning, fixxes #4926

Merge request studip/studip!3697
parent 999be96b
No related branches found
No related tags found
No related merge requests found
......@@ -170,7 +170,7 @@ class OpenGraphURL extends SimpleORMap
}
$context = get_default_http_stream_context($this['url']);
stream_context_set_option($context, [
stream_context_set_options($context, [
'http' => [
'method' => 'GET',
'header' => sprintf("User-Agent: Stud.IP v%s OpenGraph Parser\r\n", $GLOBALS['SOFTWARE_VERSION']),
......
......@@ -63,7 +63,7 @@ class PluginRepository
// Set small timeout for the rare case that the repository is not
// available
$context = get_default_http_stream_context($url);
stream_context_set_option($context, ['http' => [
stream_context_set_options($context, ['http' => [
'timeout' => 5,
]]);
$metadata = @file_get_contents($url, false, $context);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment