summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-02-29 15:13:04 +0000
committerGo MAEDA <maeda@farend.jp>2020-02-29 15:13:04 +0000
commit007c3a5dab0753f2da40937ea86b6249a184e29a (patch)
tree1342deb85c1d6c3e44aed4c243365e1f7587bf26
parent0ba13a0bd3fb19d63eccbbf1ee5d35f65a210d8e (diff)
downloadredmine-007c3a5dab0753f2da40937ea86b6249a184e29a.tar.gz
redmine-007c3a5dab0753f2da40937ea86b6249a184e29a.zip
tmp/pdf directory is no longer necessary (#32924).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@19547 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--lib/redmine/export/pdf.rb2
-rw-r--r--tmp/pdf/empty0
2 files changed, 0 insertions, 2 deletions
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb
index 7dc622c66..221703f68 100644
--- a/lib/redmine/export/pdf.rb
+++ b/lib/redmine/export/pdf.rb
@@ -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
index e69de29bb..000000000
--- a/tmp/pdf/empty
+++ /dev/null