joining splitted args to avoid redmine core changes
This commit is contained in:
parent
c6a409255b
commit
794d0b35fb
|
@ -80,9 +80,13 @@ module WikiExternalFilterHelper
|
||||||
|
|
||||||
def build_forced(text, attachments, info)
|
def build_forced(text, attachments, info)
|
||||||
|
|
||||||
|
# joining splitted args
|
||||||
|
# not necessary from v2.1.0
|
||||||
|
text = text.join(", ")
|
||||||
|
|
||||||
if info['replace_attachments'] and attachments
|
if info['replace_attachments'] and attachments
|
||||||
attachments.each do |att|
|
attachments.each do |att|
|
||||||
text.to_s.gsub!(/#{att.filename.downcase}/i, att.diskfile)
|
text.gsub!(/#{att.filename.downcase}/i, att.diskfile)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -90,7 +94,7 @@ module WikiExternalFilterHelper
|
||||||
content = []
|
content = []
|
||||||
errors = ""
|
errors = ""
|
||||||
|
|
||||||
text = text.first.to_s.gsub("<br />", "\n")
|
text = text.gsub("<br />", "\n")
|
||||||
Rails.logger.debug "\n Text #{text} \n"
|
Rails.logger.debug "\n Text #{text} \n"
|
||||||
|
|
||||||
info['outputs'].each do |out|
|
info['outputs'].each do |out|
|
||||||
|
|
Reference in New Issue