diff options
author | kondou <kondou@ts.unde.re> | 2013-08-18 16:41:00 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-08-25 21:06:01 +0200 |
commit | 4a9c89fb3323e26fb88559e658136af4bbc7a3c8 (patch) | |
tree | c084a0d905d5d369a2bdb6bc8e0615ba02473529 /avatar.php | |
parent | cd2f7bdaef08ba922a6bbedfd9ec7384d3b68978 (diff) | |
download | nextcloud-server-4a9c89fb3323e26fb88559e658136af4bbc7a3c8.tar.gz nextcloud-server-4a9c89fb3323e26fb88559e658136af4bbc7a3c8.zip |
Clean up and prepare a bit for custom default avatars
Diffstat (limited to 'avatar.php')
-rw-r--r-- | avatar.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/avatar.php b/avatar.php index f983f62f8b1..dee162eca7f 100644 --- a/avatar.php +++ b/avatar.php @@ -1,9 +1,5 @@ <?php -/** - * * @todo work on hashing userstrings, so one can't guess usernames - */ - require_once 'lib/base.php'; if (!\OC_User::isLoggedIn()) { @@ -40,6 +36,6 @@ if ($image instanceof \OC_Image) { } elseif (is_string($image)) { // Gravatar alike services header("Location: ".$image); } else { - $image = \OC_Avatar::getDefaultAvatar($size); + $image = \OC_Avatar::getDefaultAvatar($user, $size); $image->show(); } |