This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 0335f12  Replace magic name with constant; use File.join instead of '/'
0335f12 is described below

commit 0335f12f7605401d986908a49fab9d3fd0386cff
Author: Sebb <[email protected]>
AuthorDate: Sat Mar 7 15:06:48 2020 +0000

    Replace magic name with constant; use File.join instead of '/'
---
 www/board/agenda/views/actions/posted-reports.json.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/board/agenda/views/actions/posted-reports.json.rb 
b/www/board/agenda/views/actions/posted-reports.json.rb
index 2a5896b..7a9dd05 100755
--- a/www/board/agenda/views/actions/posted-reports.json.rb
+++ b/www/board/agenda/views/actions/posted-reports.json.rb
@@ -44,7 +44,7 @@ else
 end
 
 # get a list of current board messages
-archive = Dir["#{ARCHIVE}/#{previous}/*", "/srv/mail/board/#{current}/*"]
+archive = Dir[File.join(ARCHIVE, previous, '*'), File.join(ARCHIVE, current 
,'*')]
 
 # select messages that have a subject line starting with [REPORT]
 reports = []

Reply via email to