Hardcoded email, whoops.

This commit is contained in:
Josh Sherman 2013-09-12 09:49:19 -04:00
parent 4819b2c1a2
commit d671cfa977

View file

@ -55,7 +55,6 @@ class API_Gravatar extends API_Common
*/ */
public static function img($email, $size = 80, $default = 'gravatar', $rating = 'g', $force = false, $secure = false, $attributes = false) public static function img($email, $size = 80, $default = 'gravatar', $rating = 'g', $force = false, $secure = false, $attributes = false)
{ {
$email = 'joshsherman@gmail.com';
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) if (!filter_var($email, FILTER_VALIDATE_EMAIL))
{ {
throw new Exception('Invalid email address.'); throw new Exception('Invalid email address.');