Skip to content

Commit c324d9a

Browse files
committed
fixes #526
1 parent f549187 commit c324d9a

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

OpenCast.class.php

+6-4
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ public function __construct()
2929

3030
$icon = new Icon($this->getPluginURL() . '/images/opencast-courseware.svg');
3131

32-
PageLayout::addStyle('.cw-blockadder-item.cw-blockadder-item-plugin-opencast-video {
33-
background-image:url('. $icon->asImagePath() .')
34-
}');
32+
if (\StudipVersion::newerThan('4.6')) {
33+
PageLayout::addStyle('.cw-blockadder-item.cw-blockadder-item-plugin-opencast-video {
34+
background-image:url('. $icon->asImagePath() .')
35+
}');
3536

36-
PageLayout::addScript($this->getPluginUrl() . '/static/register.js');
37+
PageLayout::addScript($this->getPluginUrl() . '/static/register.js');
38+
}
3739

3840
bindtextdomain(static::GETTEXT_DOMAIN, $this->getPluginPath() . '/locale');
3941
bind_textdomain_codeset(static::GETTEXT_DOMAIN, 'UTF-8');

package-lock.json

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "studip-opencast-plugin",
3-
"version": "2.0.0",
3+
"version": "2.2.0",
44
"description": "Stud.IP plugin for Opencast",
55
"devDependencies": {
66
"@babel/core": "^7.12.13",

plugin.manifest

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pluginname=OpenCast
22
pluginclassname=OpenCast
33
origin=elan-ev
4-
version=2.0.0
4+
version=2.1
55
studipMinVersion=4.2
66
studipMaxVersion=5.1.99
77
summary=Vorlesungsaufzeichnung

0 commit comments

Comments
 (0)