FIX: Use avatar_dir to import user avatars

This commit is contained in:
Vinoth Kannan 2018-05-21 13:43:23 +05:30
parent c9c3a83261
commit 09151190f9
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ class ImportScripts::Lithium < ImportScripts::Base
# import user avatar
sso_id = u.custom_fields["sso_id"]
if sso_id.present?
prefix = "#{UPLOAD_DIR}/#{sso_id}_"
prefix = "#{AVATAR_DIR}/#{sso_id}_"
file = get_file(prefix + "actual.jpeg")
file ||= get_file(prefix + "profile.jpeg")