rename system_username to site_contact_username , system_user is a special user with -1 id that is only used for certain admin tasks

for example system_user will autoclose stuff if needed, it will delete stubs and be the target for flag pms
This commit is contained in:
Sam
2013-09-06 17:28:37 +10:00
parent 41a1b6942d
commit 2ce4468aa5
27 changed files with 56 additions and 49 deletions

View File

@@ -37,7 +37,7 @@ class AdminDashboardData
send_consumer_email_check,
title_check,
access_password_removal,
system_username_check,
site_contact_username_check,
notification_email_check ].compact
end
@@ -148,8 +148,8 @@ class AdminDashboardData
I18n.t('dashboard.consumer_email_warning') if Rails.env == 'production' and ActionMailer::Base.smtp_settings[:address] =~ /gmail\.com|live\.com|yahoo\.com/
end
def system_username_check
I18n.t('dashboard.system_username_warning') if SiteSetting.system_username.blank?
def site_contact_username_check
I18n.t('dashboard.site_contact_username_warning') if SiteSetting.site_contact_username.blank?
end
def notification_email_check