From 3c6848085f3ff92a3848f5ab1b4b1df12d2f8de7 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Thu, 27 Jun 2019 16:21:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 5e86be7e..18473fbf 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -3079,7 +3079,7 @@ module ApplicationHelper elsif @syllabus title << (@syllabus.title.nil? ? "课堂" : @syllabus.title) else - title << (User.current.id == 2 ? "Educoder实践教学" : User.current.show_name) + title << (User.current.anonymous? ? "Educoder实践教学" : User.current.show_name) end # if first_page.nil? || first_page.web_title.nil? # title << Setting.app_title unless Setting.app_title == title.last