mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
allow for empty headers properly
This commit is contained in:
parent
85973ce6b0
commit
168bb01439
1 changed files with 5 additions and 1 deletions
|
@ -75,7 +75,11 @@ footer:after{ content: '#{error}' }"
|
|||
def self.custom_header(preview_style)
|
||||
preview_style ||= enabled_style
|
||||
style = lookup_style(preview_style)
|
||||
style.header.html_safe if style
|
||||
if style && style.header
|
||||
style.header.html_safe
|
||||
else
|
||||
""
|
||||
end
|
||||
end
|
||||
|
||||
def self.override_default_style(preview_style)
|
||||
|
|
Loading…
Reference in a new issue