In XenForo_ControllerPublic_Account::actionAvatar, there are these lines:
But the variable is not used at all in template "account_avatar". It is used once in "account_avatar_overlay" though. I think they should be used in the same way in these two templates.
$gravatarEmail = $visitor['gravatar'] ? $visitor['gravatar'] : $visitor['email']; $viewParams = array( ... 'gravatarEmail'=> $gravatarEmail, ... );