From 81161414ebe72d0b84e3bd267ea154d3f5452ff1 Mon Sep 17 00:00:00 2001 From: nickw Date: Mon, 14 Feb 2011 23:21:23 +0000 Subject: Saving avatar filename with user GUID instead of old-style username. git-svn-id: http://code.elgg.org/elgg/trunk@8237 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/twitterservice/twitterservice_lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/twitterservice') diff --git a/mod/twitterservice/twitterservice_lib.php b/mod/twitterservice/twitterservice_lib.php index fa6fb9111..5d04714f0 100644 --- a/mod/twitterservice/twitterservice_lib.php +++ b/mod/twitterservice/twitterservice_lib.php @@ -191,7 +191,7 @@ function twitterservice_update_user_avatar($user, $file_location) { $dimensions[2] ); - $filehandler->setFilename("profile/$user->username$size.jpg"); + $filehandler->setFilename("profile/$user->guid$size.jpg"); $filehandler->open('write'); $filehandler->write($image); $filehandler->close(); @@ -319,4 +319,4 @@ function twitterservice_allow_new_users_with_twitter() { } return false; -} \ No newline at end of file +} -- cgit v1.2.3