diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-11-29 08:06:06 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-11-29 08:06:06 +0000 |
| commit | c20978de1363bf9fbada4afa93319f76680090aa (patch) | |
| tree | 2be3c5ad0d77c90f66cceb7687372744fe82ca1a /lib/models/OpenGraphURL.php | |
| parent | 999be96b285494f4dc668c3669f6f8175357c800 (diff) | |
fix deprecated warning, fixxes #4926
Merge request studip/studip!3697
Diffstat (limited to 'lib/models/OpenGraphURL.php')
| -rw-r--r-- | lib/models/OpenGraphURL.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/OpenGraphURL.php b/lib/models/OpenGraphURL.php index 29e5718..3caf3c4 100644 --- a/lib/models/OpenGraphURL.php +++ b/lib/models/OpenGraphURL.php @@ -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']), |
