Skip to content

Commit 4af0eea

Browse files
author
Carlos Garcia
committed
Update copyright year and modify Gravatar URL to include default image
1 parent f3c7214 commit 4af0eea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Core/Model/Base/GravatarTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* This file is part of FacturaScripts
4-
* Copyright (C) 2022 Carlos Garcia Gomez <carlos@facturascripts.com>
4+
* Copyright (C) 2022-2025 Carlos Garcia Gomez <carlos@facturascripts.com>
55
*
66
* This program is free software: you can redistribute it and/or modify
77
* it under the terms of the GNU Lesser General Public License as
@@ -22,7 +22,7 @@
2222
/**
2323
* Description of GravatarTrait
2424
*
25-
* @author Carlos García Gómez <carlos@facturascripts.com>
25+
* @author Carlos García Gómez <carlos@facturascripts.com>
2626
* @author Daniel Fernández Giménez <hola@danielfg.es>
2727
*/
2828
trait GravatarTrait
@@ -33,6 +33,6 @@ trait GravatarTrait
3333
public function gravatar(int $size = 80): string
3434
{
3535
return empty($this->email) ? '' :
36-
'https://www.gravatar.com/avatar/' . md5(strtolower(trim($this->email))) . '?s=' . $size;
36+
'https://www.gravatar.com/avatar/' . md5(strtolower(trim($this->email))) . '?s=' . $size . '&d=mp';
3737
}
3838
}

0 commit comments

Comments
 (0)