FIX: phpbb import - attachments not embedded in posts (#14570)
This commit is contained in:
parent
9d28de0112
commit
97178cd777
|
@ -159,7 +159,7 @@ module ImportScripts::PhpBB3
|
|||
attachment_regexp = /\[attachment=([\d])+\]<!-- [\w]+ -->([^<]+)<!-- [\w]+ -->\[\/attachment\]?/i
|
||||
unreferenced_attachments = attachments.dup
|
||||
|
||||
text = text.gsub(attachment_regexp) do
|
||||
text.gsub!(attachment_regexp) do
|
||||
index = $1.to_i
|
||||
real_filename = $2
|
||||
unreferenced_attachments[index] = nil
|
||||
|
|
Loading…
Reference in New Issue