Project

General

Profile

Patch #23545 » 0001-adds-before_render-hook-to-WikiController-show.patch

Jens Krämer, 2016-08-09 08:33

View differences:

app/controllers/wiki_controller.rb
93 93
      end
94 94
      return
95 95
    end
96

  
97
    call_hook :controller_wiki_show_before_render, content: @content, format: params[:format]
98

  
96 99
    if User.current.allowed_to?(:export_wiki_pages, @project)
97 100
      if params[:format] == 'pdf'
98 101
        send_file_headers! :type => 'application/pdf', :filename => "#{@page.title}.pdf"
    (1-1/1)