workaround wikicloth i18n issue (closes foodsoft#217)

This commit is contained in:
wvengen 2013-12-06 16:41:16 +01:00
parent 2baa1d3349
commit 043607f20d

View file

@ -2,7 +2,8 @@ module PagesHelper
include WikiCloth include WikiCloth
def wikified_body(body, title = nil) def wikified_body(body, title = nil)
WikiCloth.new({:data => body+"\n", :link_handler => Wikilink.new, :params => {:referer => title}}).to_html.html_safe render_opts = {:locale => I18n.locale} # workaround for wikicloth 0.8.0 https://github.com/nricciar/wikicloth/pull/59
WikiCloth.new({:data => body+"\n", :link_handler => Wikilink.new, :params => {:referer => title}}).to_html(render_opts).html_safe
end end
def link_to_wikipage(page, text = nil) def link_to_wikipage(page, text = nil)