From 5764cef8d1aff5d970b38397f8974dae4a706eb8 Mon Sep 17 00:00:00 2001
From: Tobias Reischmann <tobias.reischmann@wi.uni-muenster.de>
Date: Fri, 5 Oct 2018 14:57:48 +0200
Subject: [PATCH] Switched rendering of login to the presence of baseurl

---
 filter.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/filter.php b/filter.php
index 19fa2fd..df1b269 100644
--- a/filter.php
+++ b/filter.php
@@ -49,7 +49,7 @@ class filter_opencast extends moodle_text_filter {
             $baseurl = get_config('tool_opencast', 'apiurl');
         }
 
-        if (stripos($text, '</video>') === false) {
+        if (stripos($text, $baseurl) === false) {
             // Performance shortcut - if there are no </video> tags, nothing can match.
             return $text;
         }
-- 
GitLab