diff options
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/markup_helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/markup_helper.rb b/app/helpers/markup_helper.rb index 25d56ffca2c..ad206d0e5b5 100644 --- a/app/helpers/markup_helper.rb +++ b/app/helpers/markup_helper.rb @@ -126,7 +126,8 @@ module MarkupHelper text = wiki_page.content return '' unless text.present? - html = markup_unsafe(wiki_page.path, text, render_wiki_content_context(@wiki, wiki_page, context)) + context = render_wiki_content_context(@wiki, wiki_page, context) + html = markup_unsafe(wiki_page.path, text, context) prepare_for_rendering(html, context) end |