mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Show title as home logo if title has been set and logo is blank.
https://meta.discourse.org/t/default-text-logo-not-working/103936
This commit is contained in:
@@ -175,8 +175,19 @@ class SiteSetting < ActiveRecord::Base
|
||||
site_logo_small_url
|
||||
site_mobile_logo_url
|
||||
site_favicon_url
|
||||
site_home_logo_url
|
||||
}.each { |client_setting| client_settings << client_setting }
|
||||
|
||||
def self.site_home_logo_url
|
||||
upload = SiteSetting.logo
|
||||
|
||||
if SiteSetting.defaults.get(:title) != SiteSetting.title && !upload
|
||||
''
|
||||
else
|
||||
full_cdn_url(upload ? upload.url : '/images/d-logo-sketch.png')
|
||||
end
|
||||
end
|
||||
|
||||
def self.site_logo_url
|
||||
upload = self.logo
|
||||
upload ? full_cdn_url(upload.url) : self.logo_url(warn: false)
|
||||
|
||||
Reference in New Issue
Block a user