Revert "Use gravatar as a fallback for missing files"
This reverts commit 52493a9a2b
.
This commit is contained in:
parent
52493a9a2b
commit
75f0429961
|
@ -32,8 +32,7 @@ class GravatarPlugin extends Plugin
|
||||||
{
|
{
|
||||||
function onEndProfileGetAvatar($profile, $size, &$avatar)
|
function onEndProfileGetAvatar($profile, $size, &$avatar)
|
||||||
{
|
{
|
||||||
if (empty($avatar) ||
|
if (empty($avatar)) {
|
||||||
(!empty($avatar->filename) && !file_exists(Avatar::path($avatar->filename)))) {
|
|
||||||
$user = $profile->getUser();
|
$user = $profile->getUser();
|
||||||
if (!empty($user) && !empty($user->email)) {
|
if (!empty($user) && !empty($user->email)) {
|
||||||
// Fake one!
|
// Fake one!
|
||||||
|
|
Loading…
Reference in New Issue
Block a user