Skip to content

Commit f326dbd

Browse files
committed
handle UNI_NAME_CLEAN
1 parent 9a3cb77 commit f326dbd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/Models/REST/SeriesClient.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,16 @@ public function createSeriesForSeminar($course_id)
6969
*/
7070
private static function getSeriesDC($course_id)
7171
{
72-
$course = new \Seminar($course_id);
73-
$name = $course->getName() . ' - ' . $course->getStartSemesterName();
74-
$license = "© " . gmdate('Y') . " " . $GLOBALS['UNI_NAME_CLEAN'];
75-
$inst = \Institute::find($course->institut_id);
72+
$uni_name_clean = \Config::get()->getValue('UNI_NAME_CLEAN') ?: 'unbekannt';
73+
$course = new \Seminar($course_id);
74+
$name = $course->getName() . ' - ' . $course->getStartSemesterName();
75+
$license = "© " . gmdate('Y') . " " . $uni_name_clean;
76+
$inst = \Institute::find($course->institut_id);
7677

7778
$publisher = (string)$inst->name;
7879
$instructors = $course->getMembers('dozent');
7980
$instructor = array_shift($instructors);
80-
$contributor = \Config::get()->getValue('UNI_NAME_CLEAN') ?: 'unbekannt';
81+
$contributor = $uni_name_clean;
8182
$creator = $instructor['fullname'];
8283
$language = 'de';
8384

0 commit comments

Comments
 (0)