Revert "Use gravatar as a fallback for missing files"

This reverts commit 52493a9a2b.
This commit is contained in:
Evan Prodromou 2011-04-14 13:06:23 -04:00
parent 52493a9a2b
commit 75f0429961

View File

@ -32,8 +32,7 @@ class GravatarPlugin extends Plugin
{
function onEndProfileGetAvatar($profile, $size, &$avatar)
{
if (empty($avatar) ||
(!empty($avatar->filename) && !file_exists(Avatar::path($avatar->filename)))) {
if (empty($avatar)) {
$user = $profile->getUser();
if (!empty($user) && !empty($user->email)) {
// Fake one!