mirror of
https://github.com/discourse/discourse.git
synced 2026-08-26 21:27:16 -05:00
PERF: stop messing with strings that come back from I18n.t
allows better caching
This commit is contained in:
@@ -25,9 +25,9 @@ module SiteContentClassMethods
|
||||
result = ""
|
||||
if site_content.blank?
|
||||
ct = find_content_type(content_type)
|
||||
result = ct.default_content if ct.present?
|
||||
result = ct.default_content.dup if ct.present?
|
||||
else
|
||||
result = site_content.content
|
||||
result = site_content.content.dup
|
||||
end
|
||||
|
||||
result.gsub!(/\%\{[^}]+\}/) do |m|
|
||||
|
||||
Reference in New Issue
Block a user