app/controllers/alchemy/admin/pages_controller.rb in alchemy_cms-2.5.0.b2 vs app/controllers/alchemy/admin/pages_controller.rb in alchemy_cms-2.5.0.b5
- old
+ new
@@ -217,10 +217,10 @@
@redirect_url = admin_pages_path
render :action => :redirect
end
def switch_language
- set_language_from(params[:language_id])
+ set_language(params[:language_id])
redirect_path = request.referer.include?('admin/layoutpages') ? admin_layoutpages_path : admin_pages_path
if request.xhr?
@redirect_url = redirect_path
render :action => :redirect
else