diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-08-31 16:16:03 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-08-31 16:16:03 -0400 |
commit | 7816b223603ee52cc7b0c40f1f1f36a4b752c477 (patch) | |
tree | 19e2568eccdca7c54b396251d11f8cdf9888f5b4 /app/helpers/gitlab_markdown_helper.rb | |
parent | 9bb06ae9effab7bc2ae813539f1253038cb6c221 (diff) | |
download | gitlab-ce-7816b223603ee52cc7b0c40f1f1f36a4b752c477.tar.gz |
Fix context options in `markdown` helper
We need to send `path`, not `requested_path`.
Diffstat (limited to 'app/helpers/gitlab_markdown_helper.rb')
-rw-r--r-- | app/helpers/gitlab_markdown_helper.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/helpers/gitlab_markdown_helper.rb b/app/helpers/gitlab_markdown_helper.rb index d7843a70c72..4ccdeff353d 100644 --- a/app/helpers/gitlab_markdown_helper.rb +++ b/app/helpers/gitlab_markdown_helper.rb @@ -48,11 +48,11 @@ module GitlabMarkdownHelper def markdown(text, context = {}) context.merge!( - current_user: current_user, - project: @project, - project_wiki: @project_wiki, - ref: @ref, - requested_path: @path + current_user: current_user, + path: @path, + project: @project, + project_wiki: @project_wiki, + ref: @ref, ) Gitlab::Markdown.render(text, context) |