diff --git a/src/Image.php b/src/Image.php index 6a51b13..04d4d73 100644 --- a/src/Image.php +++ b/src/Image.php @@ -20,14 +20,15 @@ class Image extends Gravatar protected $iSize; /** - * @var string The extension to append to the avatars URL. + * @var string The default image to use ; either a string of + * the gravatar recognized default image "type" to use, or a URL */ - protected $sExtension; + protected $sDefaultImage; /** - * @var array List of accepted extensions. + * @var array List of accepted gravatar recognized default image "type". */ - protected $aValidExtensions = array('jpg', 'jpeg', 'gif', 'png'); + protected $aValidDefaultsImages = array('404', 'mm', 'identicon', 'monsterid', 'wavatar', 'retro', 'blank'); /** * @var string The maximum rating to allow for the avatars. @@ -40,25 +41,24 @@ class Image extends Gravatar protected $aValidRatings = array('g', 'pg', 'r', 'x'); /** - * @var string The default image to use ; either a string of - * the gravatar recognized default image "type" to use, or a URL + * @var string The extension to append to the avatars URL. */ - protected $sDefaultImage; + protected $sExtension; /** - * @var string + * @var array List of accepted extensions. */ - protected $sParamsCache; + protected $aValidExtensions = array('jpg', 'jpeg', 'gif', 'png'); /** - * @var array List of accepted gravatar recognized default image "type". + * @var boolean Should we use the secure (HTTPS) URL base? */ - protected $aValidDefaultsImages = array('404', 'mm', 'identicon', 'monsterid', 'wavatar', 'retro', 'blank'); + protected $bUseSecureUrl = false; /** - * @var boolean Should we use the secure (HTTPS) URL base? + * @var string */ - protected $bUseSecureUrl = false; + protected $sParamsCache; /** * Build the avatar URL based on the provided email address. diff --git a/src/Profile.php b/src/Profile.php index 76556f1..0a2f3df 100644 --- a/src/Profile.php +++ b/src/Profile.php @@ -42,7 +42,9 @@ public function getUrl($sEmail) */ public function getData($sEmail) { - $sProfile = file_get_contents($this->getUrl($sEmail).'.php'); + $this->sFormat = 'php'; + + $sProfile = file_get_contents($this->getUrl($sEmail)); $aProfile = unserialize($sProfile);