ConferenceJson: fix some defaults

This commit is contained in:
Franziska Kunsmann 2024-05-07 18:19:49 +02:00
parent a43d104e78
commit 23b14e2925
No known key found for this signature in database
GPG key ID: 12E3D2136B818350
2 changed files with 2 additions and 4 deletions

View file

@ -1,10 +1,8 @@
{
"$schema": "../../../docs/config-schema.json",
"conference": {
"acronym": "jugendhackt",
"description": "Jugend hackt Live Streaming, 2024 edition",
"end": "2024-06-20T18:00:00+02:00",
"keywords": [],
"organizer": "Jugend hackt",
"start": "2024-05-18T12:00:00+02:00",
"title": "Jugend hackt Frankfurt am Main 2024",

View file

@ -49,7 +49,7 @@ class ConferenceJson extends Conference
$groups['Live'] = array_keys((array) $this->rooms);
}
$acronym = $c->acronym ?: $mandator;
$acronym = isset($c->acronym) ? $c->acronym : $mandator;
$config = array_merge(
isset($c->streamingConfig) ? get_object_vars($c->streamingConfig) : [],
@ -61,7 +61,7 @@ class ConferenceJson extends Conference
'title' => $c->title,
'author' => $c->organizer,
'description' => $c->description,
'keywords' => is_array($c->keywords) ? implode(', ', $c->keywords) : "",
'keywords' => isset($c->keywords) ? (is_array($c->keywords) ? implode(', ', $c->keywords) : "") : "",
// future TODO: change structure
"relive_json" => "https://cdn.c3voc.de/relive/".$acronym."/index.json",
"releases" => "https://media.ccc.de/c/".$acronym,