diff --git a/src/SiteInfo.php b/src/SiteInfo.php index 660aaea..32abb8d 100644 --- a/src/SiteInfo.php +++ b/src/SiteInfo.php @@ -1,18 +1,28 @@ props = $config->getValues([ - ['name:s', 'Misuzu'], - 'desc:s', - 'url:s', - 'ext_logo:s', - ]); + try { + $this->props = $config->getValues([ + ['name:s', 'Misuzu'], + 'desc:s', + 'url:s', + 'ext_logo:s', + ]); + } catch(RuntimeException $ex) { + $this->props = [ + 'name' => 'Misuzu', + 'desc' => '', + 'url' => '', + 'ext_logo' => '', + ]; + } } public string $name {