mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
Implemented Gravatar config.
This commit is contained in:
parent
bc9bbea0eb
commit
1787bfc430
@ -404,7 +404,9 @@ class Comment extends DataObject {
|
||||
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";
|
||||
$gravatardefault = Commenting::get_config_value($this->BaseClass, 'gravatar_default');
|
||||
$gravatarrating = Commenting::get_config_value($this->BaseClass, 'gravatar_rating');
|
||||
$gravatar.= "?s=".$gravatarsize."&d=".$gravatardefault."&r=".$gravatarrating;
|
||||
}
|
||||
|
||||
return $gravatar;
|
||||
|
Loading…
Reference in New Issue
Block a user