summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2017-04-24 12:36:59 +0200
committerToon Claes <toon@gitlab.com>2017-04-27 13:22:17 +0200
commit5473f3dcd6d6e0c975f32f336e08a9735af8cc58 (patch)
tree9659c92ae03154cf9df688ac9d780094f8e2f1da
parentaf114f1280adc19b2b017eef85a980c1ae079101 (diff)
downloadgitlab-ce-5473f3dcd6d6e0c975f32f336e08a9735af8cc58.tar.gz
Add commit to the Banzai::post_process context
-rw-r--r--app/helpers/markup_helper.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/helpers/markup_helper.rb b/app/helpers/markup_helper.rb
index 3b08b0447b2..b41f76450db 100644
--- a/app/helpers/markup_helper.rb
+++ b/app/helpers/markup_helper.rb
@@ -233,9 +233,10 @@ module MarkupHelper
current_user: (current_user if defined?(current_user)),
# RelativeLinkFilter
- requested_path: @path,
+ commit: @commit,
project_wiki: @project_wiki,
- ref: @ref
+ ref: @ref,
+ requested_path: @path
)
Banzai.post_process(html, context)