From b388edbb60f57171e6517662b6a4ec738263490e Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Mon, 23 Mar 2026 17:22:07 +0200 Subject: [PATCH] Adds failover for site name var early in index --- public_html/index.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/public_html/index.php b/public_html/index.php index d87dc59..add611a 100644 --- a/public_html/index.php +++ b/public_html/index.php @@ -40,6 +40,13 @@ $config = ConfigLoader::loadConfig([ '/opt/jilo-web/jilo-web.conf.php', ]); +// Ensure we have value for site name +$siteName = trim((string)($config['site_name'] ?? '')); +if ($siteName === '') { + $siteName = 'Website'; +} +$config['site_name'] = $siteName; + // Make config available globally $GLOBALS['config'] = $config; // FIXME we use old globals and includes before migrating fully to App\App App::set('config', $config);