Patch #23545 » 0001-adds-before_render-hook-to-WikiController-show.patch
| app/controllers/wiki_controller.rb | ||
|---|---|---|
|
end
|
||
|
return
|
||
|
end
|
||
|
call_hook :controller_wiki_show_before_render, content: @content, format: params[:format]
|
||
|
if User.current.allowed_to?(:export_wiki_pages, @project)
|
||
|
if params[:format] == 'pdf'
|
||
|
send_file_headers! :type => 'application/pdf', :filename => "#{@page.title}.pdf"
|
||