Permalink
Browse files

removed the page.slug.locale part of the globalize! call.

  • Loading branch information...
1 parent 81387fa commit 3574af1311c1f07fa652f3c6a04bf1e03e725c0e @peterberkenbosch peterberkenbosch committed Jan 24, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 pages/app/controllers/admin/pages_controller.rb
View
2 pages/app/controllers/admin/pages_controller.rb
@@ -19,7 +19,7 @@ def new
protected
def globalize!
- Thread.current[:globalize_locale] = (params[:switch_locale] || (@page.present? && @page.slug.locale) || ::Refinery::I18n.default_frontend_locale)
+ Thread.current[:globalize_locale] = (params[:switch_locale] || ::Refinery::I18n.default_frontend_locale)
end
def show_errors_for_reserved_slug(exception)

0 comments on commit 3574af1

Please sign in to comment.