mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:47:22 +08:00
FIX: rendering %lt;/div noscript in header
This commit is contained in:
parent
0693ed10d1
commit
cff9b8846d
|
@ -357,7 +357,12 @@ module ApplicationHelper
|
|||
|
||||
# If there is plugin HTML return that, otherwise yield to the template
|
||||
def replace_plugin_html(name)
|
||||
build_plugin_html(name).presence || yield
|
||||
if (html = build_plugin_html(name)).present?
|
||||
html
|
||||
else
|
||||
yield
|
||||
nil
|
||||
end
|
||||
end
|
||||
|
||||
def theme_lookup(name)
|
||||
|
|
Loading…
Reference in New Issue
Block a user