From ea4f309589171ad797b362acdc1d5dc89faf1e8f Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Fri, 23 Nov 2012 10:02:22 +1300 Subject: Use Globalize.locale instead of Thread We really shouldn't know how this works. --- app/views/refinery/blog/admin/categories/_form.html.erb | 2 +- app/views/refinery/blog/admin/posts/_form.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app/views/refinery') diff --git a/app/views/refinery/blog/admin/categories/_form.html.erb b/app/views/refinery/blog/admin/categories/_form.html.erb index 472f5d7..a0fd55b 100644 --- a/app/views/refinery/blog/admin/categories/_form.html.erb +++ b/app/views/refinery/blog/admin/categories/_form.html.erb @@ -4,7 +4,7 @@ :include_object_name => true %> <%= render '/refinery/admin/locale_picker', - :current_locale => Thread.current[:globalize_locale] if Refinery.i18n_enabled? %> + :current_locale => Globalize.locale %>
<%= f.label :title -%> diff --git a/app/views/refinery/blog/admin/posts/_form.html.erb b/app/views/refinery/blog/admin/posts/_form.html.erb index 5245e17..39cb318 100644 --- a/app/views/refinery/blog/admin/posts/_form.html.erb +++ b/app/views/refinery/blog/admin/posts/_form.html.erb @@ -4,7 +4,7 @@ :include_object_name => true %> <%= render '/refinery/admin/locale_picker', - :current_locale => Thread.current[:globalize_locale] if Refinery.i18n_enabled? %> + :current_locale => Globalize.locale %>
<%= f.label :title -%> -- cgit v1.2.3