[Fixed] CC 2.5 -> Avatars broken.

edited March 28 in Bugs and Errors
After upgrading to CC 2.5, all my user's avatars were broken. I narrowed it down to the fact you are trying to append .png to each avatar value pulled from the DB.

I had to modify UserService.php and

replace this:

public function getAvatarUrl(User $user)
{
return (!empty($user->avatar)) ? HOST . "/cc-content/uploads/avatars/$user->avatar.png" : null;
}


with this:

public function getAvatarUrl(User $user)
{
return (!empty($user->avatar)) ? HOST . "/cc-content/uploads/avatars/$user->avatar" : null;
}


I am not sure what, if anything, this code changes breaks.

Please advice.

Thank you,

GM

Comments

This discussion has been closed.