0001-tmp-pdf-directory-is-no-longer-necessary.patch

Go MAEDA, 2020-01-30 04:45

Download (999 Bytes)

View differences:

lib/redmine/export/pdf.rb
28 28
        attr_accessor :footer_date
29 29

  
30 30
        def initialize(lang, orientation='P')
31
          @@k_path_cache = Rails.root.join('tmp', 'pdf')
32
          FileUtils.mkdir_p @@k_path_cache unless File::exist?(@@k_path_cache)
33 31
          set_language_if_valid lang
34 32
          super(orientation, 'mm', 'A4')
35 33
          set_print_header(false)