Skip to content

Commit

Permalink
use moodle url for paella config
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamara Gunkel committed Dec 14, 2021
1 parent 3644728 commit 59a09f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ public function filter($text, array $options = array()) {
$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;
Expand Down

0 comments on commit 59a09f1

Please sign in to comment.