mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +00:00
fix: use acronym instead of mandator to generate relive + voctoweb url
This commit is contained in:
parent
f2864cff00
commit
6f3fb8e154
2 changed files with 8 additions and 4 deletions
|
@ -15,6 +15,10 @@ class Conference extends ModelBase
|
|||
return $this->slug;
|
||||
}
|
||||
|
||||
public function getAcronym() {
|
||||
return $this->get('CONFERENCE.ACRONYM', $this->slug);
|
||||
}
|
||||
|
||||
public function getTitle() {
|
||||
return $this->get('CONFERENCE.TITLE', 'C3VOC');
|
||||
}
|
||||
|
|
|
@ -46,8 +46,8 @@ class ConferenceJson extends Conference
|
|||
else {
|
||||
$groups['Live'] = array_keys((array) $this->rooms);
|
||||
}
|
||||
|
||||
$acronym = $mandator ?: $c->acronym;
|
||||
|
||||
$acronym = $c->acronym ?: $mandator;
|
||||
|
||||
$config = array_merge(
|
||||
isset($c->streamingConfig) ? get_object_vars($c->streamingConfig) : [],
|
||||
|
@ -62,7 +62,7 @@ class ConferenceJson extends Conference
|
|||
// future TODO: change structure
|
||||
"relive_json" => "https://cdn.c3voc.de/relive/".$acronym."/index.json",
|
||||
"releases" => "https://media.ccc.de/c/".$acronym,
|
||||
],
|
||||
],
|
||||
// 'schedule' => (array) $c->streamingConfig->schedule
|
||||
'rooms' => $this->rooms,
|
||||
'overview' => [
|
||||
|
@ -81,7 +81,7 @@ class ConferenceJson extends Conference
|
|||
$config['conference']['releases'] = null;
|
||||
}
|
||||
|
||||
parent::__construct($config, $acronym);
|
||||
parent::__construct($config, $mandator);
|
||||
}
|
||||
|
||||
public function has($keychain)
|
||||
|
|
Loading…
Reference in a new issue