Changeset 943385
- Timestamp:
- 07/04/2014 01:39:02 PM (12 years ago)
- Location:
- wpinstagram-images-widget/trunk/class
- Files:
-
- 2 edited
-
WPICache.php (modified) (3 diffs)
-
WPIImageDownload.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpinstagram-images-widget/trunk/class/WPICache.php
r935440 r943385 16 16 $value = array( 17 17 'expires' => time() + $lifetime, 18 'values' => $value s18 'values' => $value 19 19 ); 20 20 … … 22 22 add_option( $key , serialize($value) ); 23 23 24 return $value s;24 return $value; 25 25 } 26 26 … … 59 59 } 60 60 61 public function hasExpired( $expires )61 public static function hasExpired( $expires ) 62 62 { 63 63 return ( $expires < time() ); -
wpinstagram-images-widget/trunk/class/WPIImageDownload.php
r935440 r943385 10 10 11 11 public $path; 12 12 13 13 14 public static function save( $url , $path , $name ) … … 25 26 } 26 27 27 if( ( $file = $instance->fileExists()) !== false )28 if( $instance->fileExists() !== false ) 28 29 { 29 30 return $instance; … … 44 45 protected function fileExists() 45 46 { 46 if( file_exists( $this->getImageFile() ) ) 47 { 48 return $this->target; 49 } 50 51 return false; 47 return ( file_exists( $this->getImageFile() ) ); 52 48 } 53 49
Note: See TracChangeset
for help on using the changeset viewer.