From: Hypolite Petovan Date: Mon, 19 Dec 2022 15:17:57 +0000 (-0500) Subject: Provide default value for system.banner config key X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=06ea61f0edc0164d40f65594386a3148802ed96a;p=friendica.git Provide default value for system.banner config key - Address part of https://github.com/friendica/friendica/issues/12011#issuecomment-1357768936 --- 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,