mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 03:03:44 +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)
|
t = @cache[k] = translate_no_cache(*args)
|
||||||
end
|
end
|
||||||
|
|
||||||
t
|
t.dup
|
||||||
end
|
end
|
||||||
|
|
||||||
alias_method :t, :translate
|
alias_method :t, :translate
|
||||||
|
|
Loading…
Reference in New Issue
Block a user