From 06ea61f0edc0164d40f65594386a3148802ed96a Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 19 Dec 2022 10:17:57 -0500 Subject: [PATCH] Provide default value for system.banner config key - Address part of https://github.com/friendica/friendica/issues/12011#issuecomment-1357768936 --- src/Module/Admin/Site.php | 4 ---- static/settings.config.php | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Module/Admin/Site.php b/src/Module/Admin/Site.php index ef7d5b9871..a6e73cea4a 100644 --- a/src/Module/Admin/Site.php +++ b/src/Module/Admin/Site.php @@ -388,10 +388,6 @@ class Site extends BaseAdmin /* Banner */ $banner = DI::config()->get('system', 'banner'); - if ($banner == false) { - $banner = 'logoFriendica'; - } - $email_banner = DI::config()->get('system', 'email_banner'); if ($email_banner == false) { diff --git a/static/settings.config.php b/static/settings.config.php index 3ec7fef9b7..4cebd0955b 100644 --- a/static/settings.config.php +++ b/static/settings.config.php @@ -64,6 +64,10 @@ return [ // Themes users can change to in their settings. 'allowed_themes' => 'frio,vier', + // banner (HTML string) + // HTML snippet of the top navigation banner. Not supported by frio. + 'banner' => 'logoFriendica', + // cache_contact_avatar (Boolean) // Cache versions of the contact avatars. Uses a lot of storage space 'cache_contact_avatar' => true,