aboutsummaryrefslogtreecommitdiff
path: root/mod/twitterservice/twitterservice_lib.php
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-14 23:21:23 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-14 23:21:23 +0000
commit81161414ebe72d0b84e3bd267ea154d3f5452ff1 (patch)
tree254648cd196001c7b1dff7d3c3de2733e2e697ef /mod/twitterservice/twitterservice_lib.php
parente48e83cb1d7b49c8d21d6388f9b4596a691a1931 (diff)
downloadelgg-81161414ebe72d0b84e3bd267ea154d3f5452ff1.tar.gz
elgg-81161414ebe72d0b84e3bd267ea154d3f5452ff1.tar.bz2
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
Diffstat (limited to 'mod/twitterservice/twitterservice_lib.php')
-rw-r--r--mod/twitterservice/twitterservice_lib.php4
1 files changed, 2 insertions, 2 deletions
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
+}