already initialized constant

This commit is contained in:
Karel Pičman 2023-05-15 12:52:57 +02:00
parent a9f7e6238a
commit 9a1533c3cc
2 changed files with 10 additions and 12 deletions

View File

@ -160,8 +160,8 @@ jobs:
litmus http://localhost:3000/dmsf/webdav/dmsf_test_project admin admin litmus http://localhost:3000/dmsf/webdav/dmsf_test_project admin admin
kill `cat tmp/pids/server.pid` kill `cat tmp/pids/server.pid`
bundle exec rake redmine:dmsf_webdav_test_off bundle exec rake redmine:dmsf_webdav_test_off
env: #env:
TESTS: "basic copymove props" # TESTS: "basic copymove props"
- name: Cleanup - name: Cleanup
# Rollback plugin's changes to the database # Rollback plugin's changes to the database
# Stop the database engine # Stop the database engine

View File

@ -30,16 +30,14 @@ module RedmineDmsf
attr_reader :public_path attr_reader :public_path
unless const_defined?(DIR_FILE) DIR_FILE = %(
DIR_FILE = %( <tr>
<tr> <td class=\"name\"><a href=\"%s\">%s</a></td>
<td class=\"name\"><a href=\"%s\">%s</a></td> <td class=\"size\">%s</td>
<td class=\"size\">%s</td> <td class=\"type\">%s</td>
<td class=\"type\">%s</td> <td class=\"mtime\">%s</td>
<td class=\"mtime\">%s</td> </tr>
</tr> )
)
end
def initialize(path, request, response, options) def initialize(path, request, response, options)
raise NotFound if Setting.plugin_redmine_dmsf['dmsf_webdav'].blank? raise NotFound if Setting.plugin_redmine_dmsf['dmsf_webdav'].blank?