Make the storage path Rails.root related #733
This commit is contained in:
parent
6019a6089a
commit
8a44944d6a
@ -103,7 +103,7 @@ class DmsfFile < ActiveRecord::Base
|
||||
return @@storage_path if @@storage_path.present?
|
||||
path = Setting.plugin_redmine_dmsf['dmsf_storage_directory']
|
||||
if path.blank?
|
||||
path = 'dmsf'
|
||||
path = Pathname.new('files').join('dmsf').to_s
|
||||
else
|
||||
pn = Pathname.new(path)
|
||||
return pn if pn.absolute?
|
||||
|
||||
4
init.rb
4
init.rb
@ -40,8 +40,8 @@ Redmine::Plugin.register :redmine_dmsf do
|
||||
'dmsf_max_file_download' => '0',
|
||||
'dmsf_max_email_filesize' => '0',
|
||||
'dmsf_max_ajax_upload_filesize' => '100',
|
||||
'dmsf_storage_directory' => 'dmsf',
|
||||
'dmsf_index_database' => 'dmsf_index',
|
||||
'dmsf_storage_directory' => 'files/dmsf',
|
||||
'dmsf_index_database' => 'files/dmsf_index',
|
||||
'dmsf_stemming_lang' => 'english',
|
||||
'dmsf_stemming_strategy' => 'STEM_NONE',
|
||||
'dmsf_webdav' => '1',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user