未登录状态下anonymos改为未登录

This commit is contained in:
huang 2016-06-06 15:11:07 +08:00
parent df8df117a8
commit bfa447c195
1 changed files with 1 additions and 1 deletions

View File

@ -1080,7 +1080,7 @@ module ApplicationHelper
elsif @user
title << @user.try(:realname)
else
title << User.current.try(:realname)
title << (User.current.id == 2 ? "未登录" : User.current.try(:realname))
end
if first_page.nil? || first_page.web_title.nil?
title << Setting.app_title unless Setting.app_title == title.last