From 59a09f1e19cd53d22acc3d7f5a650b62ebd1a623 Mon Sep 17 00:00:00 2001
From: Tamara Gunkel <tamara.gunkel@web.de>
Date: Tue, 14 Dec 2021 11:10:19 +0100
Subject: [PATCH] use moodle url for paella config
---
filter.php | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/filter.php b/filter.php
index bc2f708..17971e4 100644
--- a/filter.php
+++ b/filter.php
@@ -119,6 +119,10 @@ class filter_opencast extends moodle_text_filter
$mustachedata = new stdClass();
$mustachedata->playerid = 'ocplayer_' . $i++;
$mustachedata->configurl = get_config('filter_opencast', 'configurl_' . $ocinstance->id);
+ if (strpos($mustachedata->configurl, 'http') === false) {
+ $mustachedata->configurl = (new moodle_url($mustachedata->configurl))->out();
+ }
+
$mustachedata->data = json_encode($data);
$mustachedata->width = $width;
$mustachedata->height = $height;
--
GitLab