aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2012-11-23 10:02:22 +1300
committerPhilip Arndt <parndt@gmail.com>2012-11-23 10:02:22 +1300
commitea4f309589171ad797b362acdc1d5dc89faf1e8f (patch)
tree31bc5b49da68668d2ba9a791dd9c56875ebdbc2d /app
parent5f4c1cf570f2465822f850d54e08b31a9e50f054 (diff)
downloadrefinerycms-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')
-rw-r--r--app/views/refinery/blog/admin/categories/_form.html.erb2
-rw-r--r--app/views/refinery/blog/admin/posts/_form.html.erb2
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 -%>