mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Adds before_render hook to WikiController#show (#23545).
Patch by Jens Kraemer. git-svn-id: http://svn.redmine.org/redmine/trunk@15814 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
d744749d5e
commit
fa3a167cdf
@ -95,6 +95,9 @@ class WikiController < ApplicationController
|
||||
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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user