Remove I18n.locale for announcement front-end

Fix counter in back-end edit
This commit is contained in:
chris committed 2012-12-28 15:34:04 +08:00
1 parent 4d965d754b
commit 61b0f94c04
2 files changed
+16 -16

No files matched your search

+1 -1
View File
@@ -248,7 +248,7 @@ module ParserCommon
when 'this_year'
res << display_visitors_this_year.to_s
end
fragment = Nokogiri::HTML::DocumentFragment.new(body, res)
fragment = Nokogiri::HTML::DocumentFragment.new(body, "<div id='#{counter['id']}' class='#{counter['class']}'>#{res}</div>")
counter.swap(fragment)
end
end