Provide default value for system.banner config key
- Address part of https://github.com/friendica/friendica/issues/12011#issuecomment-1357768936
This commit is contained in:
parent
6a17223289
commit
06ea61f0ed
|
@ -388,10 +388,6 @@ class Site extends BaseAdmin
|
||||||
/* Banner */
|
/* Banner */
|
||||||
$banner = DI::config()->get('system', 'banner');
|
$banner = DI::config()->get('system', 'banner');
|
||||||
|
|
||||||
if ($banner == false) {
|
|
||||||
$banner = '<a href="https://friendi.ca"><img id="logo-img" width="32" height="32" src="images/friendica.svg" alt="logo" /></a><span id="logo-text"><a href="https://friendi.ca">Friendica</a></span>';
|
|
||||||
}
|
|
||||||
|
|
||||||
$email_banner = DI::config()->get('system', 'email_banner');
|
$email_banner = DI::config()->get('system', 'email_banner');
|
||||||
|
|
||||||
if ($email_banner == false) {
|
if ($email_banner == false) {
|
||||||
|
|
|
@ -64,6 +64,10 @@ return [
|
||||||
// Themes users can change to in their settings.
|
// Themes users can change to in their settings.
|
||||||
'allowed_themes' => 'frio,vier',
|
'allowed_themes' => 'frio,vier',
|
||||||
|
|
||||||
|
// banner (HTML string)
|
||||||
|
// HTML snippet of the top navigation banner. Not supported by frio.
|
||||||
|
'banner' => '<a href="https://friendi.ca"><img id="logo-img" width="32" height="32" src="images/friendica.svg" alt="logo" /></a><span id="logo-text"><a href="https://friendi.ca">Friendica</a></span>',
|
||||||
|
|
||||||
// cache_contact_avatar (Boolean)
|
// cache_contact_avatar (Boolean)
|
||||||
// Cache versions of the contact avatars. Uses a lot of storage space
|
// Cache versions of the contact avatars. Uses a lot of storage space
|
||||||
'cache_contact_avatar' => true,
|
'cache_contact_avatar' => true,
|
||||||
|
|
Loading…
Reference in a new issue