mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-20 15:31:12 +00:00
Make sure that invalid cache from older versions is not used for languages_options (#14534).
git-svn-id: http://svn.redmine.org/redmine/trunk@13544 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b3f377dfc4
commit
4e815e25d7
@ -99,7 +99,7 @@ module Redmine
|
|||||||
map {|lang| [ll(lang.to_s, :general_lang_name), lang.to_s]}.
|
map {|lang| [ll(lang.to_s, :general_lang_name), lang.to_s]}.
|
||||||
sort {|x,y| x.first <=> y.first }
|
sort {|x,y| x.first <=> y.first }
|
||||||
else
|
else
|
||||||
ActionController::Base.cache_store.fetch "i18n/languages_options" do
|
ActionController::Base.cache_store.fetch "i18n/languages_options/#{Redmine::VERSION}" do
|
||||||
languages_options :cache => false
|
languages_options :cache => false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user