mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 14:35:17 +08:00
Fix an error with mobile custom header
This commit is contained in:
@ -87,7 +87,7 @@ class SiteCustomization < ActiveRecord::Base
|
||||
def self.custom_header(preview_style, target=:desktop)
|
||||
preview_style ||= enabled_style_key
|
||||
style = lookup_style(preview_style)
|
||||
if style && ((target == :mobile && style.mobile_header) || style.header)
|
||||
if style && ((target != :mobile && style.header) || (target == :mobile && style.mobile_header))
|
||||
target == :mobile ? style.mobile_header.html_safe : style.header.html_safe
|
||||
else
|
||||
""
|
||||
|
Reference in New Issue
Block a user