Skip to content

Commit 6f769d5

Browse files
committed
prevent class collisions in Stud.IP < 5.0
1 parent 026ca0f commit 6f769d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bootstrap.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,7 @@
5252
if (\StudipVersion::newerThan('4.6')) {
5353
require_once 'lib/BlockTypes/OpencastBlock.php';
5454
} else {
55-
require_once 'lib/FakeCoursewareInterface.php';
55+
if (!interface_exists('Courseware\CoursewarePlugin')) {
56+
require_once 'lib/FakeCoursewareInterface.php';
57+
}
5658
}

0 commit comments

Comments
 (0)