mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
ENHANCEMENT: Enabled change of gravatar icon size via configuration
This commit is contained in:
parent
26d304a6e9
commit
b961b16910
@ -403,6 +403,8 @@ class Comment extends DataObject {
|
|||||||
$use_gravatar = Commenting::get_config_value($this->BaseClass, 'use_gravatar');
|
$use_gravatar = Commenting::get_config_value($this->BaseClass, 'use_gravatar');
|
||||||
if ($use_gravatar) {
|
if ($use_gravatar) {
|
||||||
$gravatar = "http://www.gravatar.com/avatar/" . md5( strtolower(trim($this->Email)));
|
$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;
|
return $gravatar;
|
||||||
|
Loading…
Reference in New Issue
Block a user