From 5cf99558ed1d162194dc675af75ee957086e5ac5 Mon Sep 17 00:00:00 2001
From: TamaraGunkel <tamara.nrw@web.de>
Date: Mon, 9 Apr 2018 13:51:21 +0200
Subject: [PATCH] removed unused dependencies

---
 filter.php  | 6 +-----
 version.php | 5 ++---
 2 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/filter.php b/filter.php
index 754791f..a5d2b68 100644
--- a/filter.php
+++ b/filter.php
@@ -69,12 +69,8 @@ class filter_opencast extends moodle_text_filter {
                 } else if ($video) {
                     $video = false;
                     if (substr($match, 0, 7) === "<source") {
-                        // Get baseurl either from engageurl setting or from opencast tool.
+                        // Get baseurl
                         $baseurl = get_config('filter_opencast', 'engageurl');
-                        if (empty($baseurl)) {
-                            $baseurl = get_config('tool_opencast', 'apiurl');
-                        }
-
 
                         // Check if video is from opencast.
                         if (strpos($match, $baseurl) === false) {
diff --git a/version.php b/version.php
index 649b823..dd28bb7 100644
--- a/version.php
+++ b/version.php
@@ -25,7 +25,6 @@
 
 defined('MOODLE_INTERNAL') || die();
 
-$plugin->version = 2018031900;        // The current plugin version (Date: YYYYMMDDXX).
+$plugin->version = 2018031901;        // The current plugin version (Date: YYYYMMDDXX).
 $plugin->requires = 2017050500;        // Requires this Moodle version.
-$plugin->component = 'filter_opencast'; // Full name of the plugin.
-$plugin->dependencies = array('tool_opencast' => ANY_VERSION);
+$plugin->component = 'filter_opencast'; // Full name of the plugin.
\ No newline at end of file
-- 
GitLab