From 2ce4277bd5bd752b756642e3d9d6e834f3d37df8 Mon Sep 17 00:00:00 2001 From: Sebb Date: Fri, 13 Sep 2024 23:51:26 +0100 Subject: [PATCH] Allow for array --- lib/whimsy/asf/documents.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/whimsy/asf/documents.rb b/lib/whimsy/asf/documents.rb index 2fd265f42b..894027d697 100644 --- a/lib/whimsy/asf/documents.rb +++ b/lib/whimsy/asf/documents.rb @@ -280,7 +280,7 @@ def self.findpath(userid, env, getDates=false) names = list.select{|x,_y| x.start_with?("#{userid}.") or x == "#{userid}/"} # if there is a sig, then files are in a subdir if names.size == 1 name = names.first - path = ASF::SVN.svnpath!(STEM, name) + path = ASF::SVN.svnpath!(STEM, getDates ? name.first : name) return [path, name].flatten # this works equally well with or without dates end return nil