Plugin Directory

Changeset 493877


Ignore:
Timestamp:
01/23/2012 09:45:03 AM (14 years ago)
Author:
atvdev
Message:
 
Location:
amazon-s3-uploads/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • amazon-s3-uploads/trunk/asssu-models.php

    r493645 r493877  
    3838        $this->mode = $options['mode'];
    3939
    40         static::$collection[$this->site_url] = $this;
     40        self::$collection[$this->site_url] = $this;
    4141    }
    4242
    4343    public function getSafeSecretKey() {
     44        if (empty($this->secret_key))
     45            return '';
    4446        return substr($this->secret_key, 0, 5).'*****'.substr($this->secret_key, -5);
    4547    }
    4648
    4749    public static function getConfig($site_url) {
    48         if (isset(static::$collection[$site_url]))
    49             return static::$collection[$site_url];
     50        if (isset(self::$collection[$site_url]))
     51            return self::$collection[$site_url];
    5052        return null;
    5153    }
     
    295297        require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'tpyo-amazon-s3-php-class'.DIRECTORY_SEPARATOR.'S3.php';
    296298        $adapter = new S3($c->access_key, $c->secret_key, $c->use_ssl);
    297         $buckets = $adapter->listBuckets();
     299        $buckets = @$adapter->listBuckets();
    298300        if (is_array($buckets) && in_array($c->bucket_name, $buckets)) {
    299301            $bucket_location = $adapter->getBucketLocation($c->bucket_name);
  • amazon-s3-uploads/trunk/asssu.php

    r493645 r493877  
    66Author URI: http://code.google.com/u/117859515361389646005/
    77Description: Moves your uploads to Amazon S3 via cron jobs.
    8 Version: 1.04
     8Version: 1.05
    99*/
    1010
  • amazon-s3-uploads/trunk/readme.txt

    r493645 r493877  
    55Requires at least: 2.3
    66Tested up to: 3.3
    7 Stable tag: 1.04
     7Stable tag: 1.05
    88
    99Moves your uploads to Amazon S3 via cron jobs.
     
    5252== Changelog ==
    5353
     54= 1.05 =
     55* Minor fixes
     56
    5457= 1.04 =
    5558* MultiSite complex configuration added
     
    7275== Upgrade Notice ==
    7376
     77= 1.05 =
     78Minor fixes
     79
    7480= 1.04 =
    7581This version incorporates some fresh holy Earth's lightnings tuned by mighty Zeus himself.
Note: See TracChangeset for help on using the changeset viewer.