Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi!
I have found ugly bug in gravatar.module function: gravatar_preprocess_user_picturem. When user sends picture, gravatar module ignores it and display avatar from their website.
it was:
// Decide with picture to use.
if (!empty($account->picture->filepath)) {
$picture = $account->picture->filepath;
}
it should be:
// Decide with picture to use.
if (!empty($account->picture->uri)) {
$picture = $account->picture->uri;
}
Comment | File | Size | Author |
---|---|---|---|
user_default_picture-gravatar.patch | 700 bytes | quex | |
Comments
Comment #1
Dave ReidThanks for the patch, will commit shortly. At some point this API changed for file objects, yay!
Comment #2
Dave ReidThanks! Committed the patch to CVS!
http://drupal.org/cvs?commit=456396
Comment #3
Dave Reid