ENHANCEMENT: Enabled change of gravatar icon size via configuration

This commit is contained in:
Gordon Anderson 2013-03-06 16:09:11 +07:00
parent 26d304a6e9
commit b961b16910

View File

@ -403,6 +403,8 @@ class Comment extends DataObject {
$use_gravatar = Commenting::get_config_value($this->BaseClass, 'use_gravatar');
if ($use_gravatar) {
$gravatar = "http://www.gravatar.com/avatar/" . md5( strtolower(trim($this->Email)));
$gravatarsize = Commenting::get_config_value($this->BaseClass, 'gravatar_size');
$gravatar.= "?s=".$gravatarsize."&d=mm";
}
return $gravatar;