mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 04:56:18 +08:00
dup is critical cause people are mucking with stuff that comes out of the cache
This commit is contained in:
parent
5ccc3edcbe
commit
7d9fd350d3
|
@ -19,7 +19,7 @@ module I18n
|
|||
t = @cache[k] = translate_no_cache(*args)
|
||||
end
|
||||
|
||||
t
|
||||
t.dup
|
||||
end
|
||||
|
||||
alias_method :t, :translate
|
||||
|
|
Loading…
Reference in New Issue
Block a user