diff options
author | Philip Arndt <parndt@gmail.com> | 2012-11-23 10:02:22 +1300 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2012-11-23 10:02:22 +1300 |
commit | ea4f309589171ad797b362acdc1d5dc89faf1e8f (patch) | |
tree | 31bc5b49da68668d2ba9a791dd9c56875ebdbc2d /app/views/refinery | |
parent | 5f4c1cf570f2465822f850d54e08b31a9e50f054 (diff) | |
download | refinerycms-blog-ea4f309589171ad797b362acdc1d5dc89faf1e8f.tar.gz refinerycms-blog-ea4f309589171ad797b362acdc1d5dc89faf1e8f.tar.bz2 refinerycms-blog-ea4f309589171ad797b362acdc1d5dc89faf1e8f.zip |
Use Globalize.locale instead of Thread
We really shouldn't know how this works.
Diffstat (limited to 'app/views/refinery')
-rw-r--r-- | app/views/refinery/blog/admin/categories/_form.html.erb | 2 | ||||
-rw-r--r-- | app/views/refinery/blog/admin/posts/_form.html.erb | 2 |
2 files changed, 2 insertions, 2 deletions
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 %> <div class='field'> <%= 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 %> <div class='field'> <%= f.label :title -%> |