joining splitted args to avoid redmine core changes

This commit is contained in:
mkinski 2012-08-08 21:24:59 +02:00
parent c6a409255b
commit 794d0b35fb
1 changed files with 6 additions and 2 deletions

View File

@ -80,9 +80,13 @@ module WikiExternalFilterHelper
def build_forced(text, attachments, info)
# joining splitted args
# not necessary from v2.1.0
text = text.join(", ")
if info['replace_attachments'] and attachments
attachments.each do |att|
text.to_s.gsub!(/#{att.filename.downcase}/i, att.diskfile)
text.gsub!(/#{att.filename.downcase}/i, att.diskfile)
end
end
@ -90,7 +94,7 @@ module WikiExternalFilterHelper
content = []
errors = ""
text = text.first.to_s.gsub("<br />", "\n")
text = text.gsub("<br />", "\n")
Rails.logger.debug "\n Text #{text} \n"
info['outputs'].each do |out|