FIX: Use avatar_dir to import user avatars
This commit is contained in:
parent
c9c3a83261
commit
09151190f9
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue