Moved Gravatar hash function to a dedicated Gravatar class
This commit is contained in:
parent
8e7a8f15c7
commit
e420e3ad72
3 changed files with 85 additions and 4 deletions
|
@ -53,14 +53,14 @@ class String
|
|||
* Generates a hash from the passed string that can then be used for
|
||||
* fetching an avatar from Gravatar.com
|
||||
*
|
||||
* @deprecated
|
||||
* @static
|
||||
* @param string $string string to hash, should be an email address
|
||||
* @return string resulting hash
|
||||
*/
|
||||
public static function generateGravatarHash($string)
|
||||
{
|
||||
// Trims whitespace, lowers the case then applies MD5
|
||||
return md5(strtolower(trim($string)));
|
||||
return API_Gravatar::hash($string);
|
||||
}
|
||||
|
||||
// }}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue