summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-10-13 13:36:47 +0200
committerDouwe Maan <douwe@gitlab.com>2015-10-13 13:36:47 +0200
commit5dd77358f6293249494bf390140843f63dfd220a (patch)
tree015378225c7ca1c293f4f3565313eab4298d90bb /app/helpers
parent9d066bc9417b06c8eaa8a7e5e73b153093102bbc (diff)
downloadgitlab-ce-5dd77358f6293249494bf390140843f63dfd220a.tar.gz
Pass project to RedactorFilter
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/gitlab_markdown_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/gitlab_markdown_helper.rb b/app/helpers/gitlab_markdown_helper.rb
index 1b8bb46d25e..65813482120 100644
--- a/app/helpers/gitlab_markdown_helper.rb
+++ b/app/helpers/gitlab_markdown_helper.rb
@@ -59,7 +59,7 @@ module GitlabMarkdownHelper
user = current_user if defined?(current_user)
html = Gitlab::Markdown.render(text, context)
- Gitlab::Markdown.post_process(html, pipeline: context[:pipeline], user: user)
+ Gitlab::Markdown.post_process(html, pipeline: context[:pipeline], project: @project, user: user)
end
# TODO (rspeicher): Remove all usages of this helper and just call `markdown`
@@ -78,7 +78,7 @@ module GitlabMarkdownHelper
user = current_user if defined?(current_user)
html = Gitlab::Markdown.gfm(text, options)
- Gitlab::Markdown.post_process(html, pipeline: options[:pipeline], user: user)
+ Gitlab::Markdown.post_process(html, pipeline: options[:pipeline], project: @project, user: user)
end
def asciidoc(text)