aboutsummaryrefslogtreecommitdiff
path: root/lib/models/OERHost.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2022-07-11 09:52:05 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2022-07-11 09:52:05 +0000
commit8f48ee027f2e4e3ed9e69a6e2910ed577196813e (patch)
tree628c5678de84ad6d3e00df2287798fd50eb1e152 /lib/models/OERHost.php
parent2054b4c0815aa508623165d7fc0b810bafc16cc0 (diff)
fix errors of type 'Unsafe usage of new static', fixes #1245
Closes #1245 Merge request studip/studip!760
Diffstat (limited to 'lib/models/OERHost.php')
-rwxr-xr-xlib/models/OERHost.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/OERHost.php b/lib/models/OERHost.php
index bba555d..7cb2ba5 100755
--- a/lib/models/OERHost.php
+++ b/lib/models/OERHost.php
@@ -21,7 +21,7 @@ class OERHost extends OERIdentity
}
return $host;
} else {
- $host = new static();
+ $host = new self();
$host['name'] = Config::get()->UNI_NAME_CLEAN;
$host['url'] = $GLOBALS['oer_PREFERRED_URI'] ?: $GLOBALS['ABSOLUTE_URI_STUDIP']."dispatch.php/oer/endpoints/";
$host['last_updated'] = time();