Development

Changeset 32280 for plugins/sfGravatarPlugin

You must first sign up to be able to contribute.

Show
Ignore:
Timestamp:
03/16/11 10:45:09 (2 years ago)
Author:
xavier
Message:

[sfGravatarPlugin]: auto-create the avatars directory (Danny Richter)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfGravatarPlugin/trunk/README

    r15256 r32280  
    6464## Changelog 
    6565 
     66### trunk 
     67 
     68 * auto-create the avatars directory (Danny Richter) 
     69 
    6670### version 0.9 - 2009-01-12: 
    6771 
  • plugins/sfGravatarPlugin/trunk/lib/GravatarApi.class.php

    r14636 r32280  
    4646 
    4747      $this->cache_dir = sfConfig::get('sf_web_dir').$this->cache_dir_name; 
     48    } 
     49 
     50    //ensure cache dir exists 
     51    if(!file_exists($this->cache_dir) && !mkdir($this->cache_dir)) 
     52    { 
     53      throw new sfException(sprintf("Could not create Gravatar cache directory (%s)", $this->cache_dir)); 
    4854    } 
    4955 
  • plugins/sfGravatarPlugin/trunk/lib/helper/GravatarHelper.php

    r14636 r32280  
    1616 
    1717  return image_tag($gravatar->getGravatar($email), 
    18                    array('alt' => $alt_text, 
     18                   array('alt_title' => $alt_text, 
    1919                         'width' => sfConfig::get('app_gravatar_default_size', 80), 
    2020                         'height' => sfConfig::get('app_gravatar_default_size', 80),