app/controllers/alchemy/admin/pages_controller.rb in alchemy_cms-2.1.rc6 vs app/controllers/alchemy/admin/pages_controller.rb in alchemy_cms-2.1

- old
+ new

@@ -25,10 +25,10 @@ # fetching page via before filter @preview_mode = true @root_page = Page.language_root_for(session[:language_id]) # Setting the locale to pages language. so the page content has its correct translation ::I18n.locale = @page.language_code - render :layout => params[:layout].blank? ? 'alchemy/pages' : params[:layout] == 'none' ? false : params[:layout] + render :layout => layout_for_page end def new @page = Page.new(:layoutpage => params[:layoutpage] == 'true', :parent_id => params[:parent_id]) @page_layouts = PageLayout.get_layouts_for_select(session[:language_id], @page.layoutpage?)