]> source.dussan.org Git - redmine.git/commitdiff
tmp/pdf directory is no longer necessary (#32924).
authorGo MAEDA <maeda@farend.jp>
Sat, 29 Feb 2020 15:13:04 +0000 (15:13 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 29 Feb 2020 15:13:04 +0000 (15:13 +0000)
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@19547 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/export/pdf.rb
tmp/pdf/empty [deleted file]

index 7dc622c66fdcc01d0b893f42c8631607fbdd40e6..221703f684fb38bdcc02bf3ca85793743aff2340 100644 (file)
@@ -28,8 +28,6 @@ module Redmine
         attr_accessor :footer_date
 
         def initialize(lang, orientation='P')
-          @@k_path_cache = Rails.root.join('tmp', 'pdf')
-          FileUtils.mkdir_p @@k_path_cache unless File::exist?(@@k_path_cache)
           set_language_if_valid lang
           super(orientation, 'mm', 'A4')
           set_print_header(false)
diff --git a/tmp/pdf/empty b/tmp/pdf/empty
deleted file mode 100644 (file)
index e69de29..0000000