From 0c5a48d851fe0e241ce3d4ec71c61cd95f4d02c9 Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Wed, 25 Mar 2026 11:43:37 +0200 Subject: [PATCH] Removes some hardcoded Jilo app name strings --- app/core/Maintenance.php | 4 ++-- app/templates/page-menu.php | 2 +- doc/database/README.md | 4 ++-- public_html/index.php | 7 ------- public_html/static/{jilo-logo.png => logo.png} | Bin 5 files changed, 5 insertions(+), 12 deletions(-) rename public_html/static/{jilo-logo.png => logo.png} (100%) diff --git a/app/core/Maintenance.php b/app/core/Maintenance.php index badeaab..ea7ef5a 100644 --- a/app/core/Maintenance.php +++ b/app/core/Maintenance.php @@ -11,7 +11,7 @@ class Maintenance public static function isEnabled(): bool { - if (getenv('JILO_MAINTENANCE') === '1') { + if (getenv('APP_MAINTENANCE') === '1') { return true; } // Prefer DB settings if available in the current request @@ -75,7 +75,7 @@ class Maintenance if (!self::isEnabled()) { return ''; } - $envMsg = getenv('JILO_MAINTENANCE_MESSAGE'); + $envMsg = getenv('APP_MAINTENANCE_MESSAGE'); if ($envMsg) { return trim($envMsg); } diff --git a/app/templates/page-menu.php b/app/templates/page-menu.php index 3a358d8..0984e45 100644 --- a/app/templates/page-menu.php +++ b/app/templates/page-menu.php @@ -36,7 +36,7 @@ if (is_array($navSettingsDotsPayload)) {

diff --git a/doc/database/README.md b/doc/database/README.md index c341c40..4a37600 100644 --- a/doc/database/README.md +++ b/doc/database/README.md @@ -53,8 +53,8 @@ Notes: - The maintenance flag is stored at `app/.maintenance.flag`. - You can also control maintenance via environment variables (useful when the filesystem is read-only): - - `JILO_MAINTENANCE=1` enables maintenance mode - - `JILO_MAINTENANCE_MESSAGE="Your message"` sets the banner message + - `APP_MAINTENANCE=1` enables maintenance mode + - `APP_MAINTENANCE_MESSAGE="Your message"` sets the banner message ## Authoring new migrations diff --git a/public_html/index.php b/public_html/index.php index add611a..d87dc59 100644 --- a/public_html/index.php +++ b/public_html/index.php @@ -40,13 +40,6 @@ $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); diff --git a/public_html/static/jilo-logo.png b/public_html/static/logo.png similarity index 100% rename from public_html/static/jilo-logo.png rename to public_html/static/logo.png