mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 20:08:26 +00:00
FIX: ctx parameter is optional
This commit is contained in:
parent
8b8ee2ad61
commit
d82d11a96b
@ -134,7 +134,7 @@ class DiscoursePluginRegistry
|
|||||||
html_builders[name] = block
|
html_builders[name] = block
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.build_html(name, ctx)
|
def self.build_html(name, ctx=nil)
|
||||||
html_builders[name]&.call(ctx)
|
html_builders[name]&.call(ctx)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user