Skip to content

Commit

Permalink
fix: use acronym instead of mandator to generate relive + voctoweb url
Browse files Browse the repository at this point in the history
  • Loading branch information
saerdnaer committed Jan 14, 2024
1 parent f2864cf commit 6f3fb8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions model/Conference.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ public function getSlug() {
return $this->slug;
}

public function getAcronym() {
return $this->get('CONFERENCE.ACRONYM', $this->slug);
}

public function getTitle() {
return $this->get('CONFERENCE.TITLE', 'C3VOC');
}
Expand Down
8 changes: 4 additions & 4 deletions model/ConferenceJson.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ function($r) { return $r->slug; },
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) : [],
Expand All @@ -62,7 +62,7 @@ function($r) { return $r->slug; },
// 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' => [
Expand All @@ -81,7 +81,7 @@ function($r) { return $r->slug; },
$config['conference']['releases'] = null;
}

parent::__construct($config, $acronym);
parent::__construct($config, $mandator);
}

public function has($keychain)
Expand Down

0 comments on commit 6f3fb8e

Please sign in to comment.