Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
Vips
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Uni Osnabrück
Plugins
Vips
Commits
86ce32b3
Commit
86ce32b3
authored
2 years ago
by
Elmar Ludwig
Browse files
Options
Downloads
Patches
Plain Diff
work around bug in Opencast plugin 2.x, fixes
#137
(1.8 branch only)
parent
d0296fb9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
VipsPlugin.php
+6
-6
6 additions, 6 deletions
VipsPlugin.php
lib/CoursewarePlugin.php
+0
-18
0 additions, 18 deletions
lib/CoursewarePlugin.php
with
6 additions
and
24 deletions
VipsPlugin.php
+
6
−
6
View file @
86ce32b3
...
@@ -39,8 +39,12 @@ if (!interface_exists('PrivacyPlugin')) {
...
@@ -39,8 +39,12 @@ if (!interface_exists('PrivacyPlugin')) {
// this is included for Stud.IP >= 5.0
// this is included for Stud.IP >= 5.0
if
(
interface_exists
(
'Courseware\CoursewarePlugin'
))
{
if
(
interface_exists
(
'Courseware\CoursewarePlugin'
))
{
require_once
'lib/VipsCoursewarePlugin.php'
;
require_once
'lib/VipsCoursewarePlugin.php'
;
class
_VipsPlugin
extends
StudIPPlugin
implements
Courseware\CoursewarePlugin
{
use
VipsCoursewarePlugin
;
}
}
else
{
}
else
{
require_once
'lib/CoursewarePlugin.php'
;
class
_VipsPlugin
extends
StudIPPlugin
{}
}
}
StudipAutoloader
::
addClassLookups
([
StudipAutoloader
::
addClassLookups
([
...
@@ -62,19 +66,15 @@ StudipAutoloader::addClassLookups([
...
@@ -62,19 +66,15 @@ StudipAutoloader::addClassLookups([
'VipsTest'
=>
__DIR__
.
'/lib/VipsTest.php'
'VipsTest'
=>
__DIR__
.
'/lib/VipsTest.php'
]);
]);
use
Courseware\CoursewarePlugin
;
/**
/**
* Vips plugin class for Stud.IP
* Vips plugin class for Stud.IP
*/
*/
class
VipsPlugin
extends
StudIP
Plugin
implements
StandardPlugin
,
SystemPlugin
,
PrivacyPlugin
,
CoursewarePlugin
class
VipsPlugin
extends
_Vips
Plugin
implements
StandardPlugin
,
SystemPlugin
,
PrivacyPlugin
{
{
public
static
$exam_mode
;
public
static
$exam_mode
;
public
static
$instance
;
public
static
$instance
;
public
static
$template_factory
;
public
static
$template_factory
;
use
VipsCoursewarePlugin
;
public
function
__construct
()
public
function
__construct
()
{
{
global
$perm
,
$user
;
global
$perm
,
$user
;
...
...
This diff is collapsed.
Click to expand it.
lib/CoursewarePlugin.php
deleted
100644 → 0
+
0
−
18
View file @
d0296fb9
<?php
/*
* CoursewarePlugin.php - Vips copy of the CoursewarePlugin interface
* Copyright (c) 2022 Elmar Ludwig
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*/
namespace
Courseware
{
interface
CoursewarePlugin
{}
}
namespace
{
trait
VipsCoursewarePlugin
{}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment