Skip to content

Commit

Permalink
null
Browse files Browse the repository at this point in the history
  • Loading branch information
forxer committed Feb 19, 2014
1 parent 7c861a7 commit 97c16ae
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
26 changes: 13 additions & 13 deletions src/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
4 changes: 3 additions & 1 deletion src/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 97c16ae

Please sign in to comment.