diff --git a/app/assets/javascripts/discourse/views/header_view.js b/app/assets/javascripts/discourse/views/header_view.js index fde91cffcca..83d78004324 100644 --- a/app/assets/javascripts/discourse/views/header_view.js +++ b/app/assets/javascripts/discourse/views/header_view.js @@ -87,20 +87,25 @@ Discourse.HeaderView = Discourse.View.extend({ /** Display the correct logo in the header, showing a custom small icon if it exists. - + In case the logo_url setting is empty, shows the site title as the logo. @property logoHTML **/ logoHTML: function() { var result = "
"; if (this.get('controller.showExtraInfo')) { - var logo = Discourse.SiteSettings.logo_small_url; - if (logo && logo.length > 1) { - result += ""; + var logoSmall = Discourse.SiteSettings.logo_small_url; + if (logoSmall && logoSmall.length > 1) { + result += ""; } else { result += ""; } } else { - result += ""; + var logo = Discourse.SiteSettings.logo_url; + if(logo && logo.length > 1) { + result += ""; + } else { + result += "" + } } result += "
"; return new Handlebars.SafeString(result);