diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index f1d307f4..bfc4f403 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -78,7 +78,7 @@ class PagesController < ApplicationController protected def save_from_no_lang_for_page if @item.nil? or !@item.enabled_for_lang(I18n.locale.to_s) - flash[:notice] = t('sys.module_page_lang_not_support') + flash[:error] = t('sys.module_page_lang_not_support') redirect_to '/' return true else diff --git a/app/views/layouts/page_layout.html.erb b/app/views/layouts/page_layout.html.erb index ae73e59d..b8894891 100644 --- a/app/views/layouts/page_layout.html.erb +++ b/app/views/layouts/page_layout.html.erb @@ -13,12 +13,10 @@
<%= yield %> - <% if !flash.empty? %> + <% if flash[:error] %>