Merge pull request #3915 from tgxworld/dont_use_bang_methods

FIX: Avoid bang methods in Disqus importer.
This commit is contained in:
Guo Xiang Tan 2015-12-08 09:41:48 +08:00
commit 4b036bb7bf
1 changed files with 1 additions and 2 deletions

View File

@ -151,8 +151,7 @@ class DisqusSAX < Nokogiri::XML::SAX::Document
@threads.delete(id)
else
# Normalize titles
t[:title].gsub!(@strip, '') if @strip.present?
t[:title].strip!
t[:title] = [:title].gsub(@strip, '').strip if @strip.present?
end
end