1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-08-07 16:46:39 +02:00

refixing new cache management for remote images

This commit is contained in:
Mikael Roos
2015-12-07 16:01:47 +01:00
parent b069e322e9
commit 05c11ca9fc
2 changed files with 24 additions and 17 deletions

View File

@@ -358,6 +358,13 @@ class CImage
/**
* Path to cache for remote download.
*/
private $remoteCache;
/** /**
* Pattern to recognize a remote file. * Pattern to recognize a remote file.
*/ */
@@ -400,7 +407,7 @@ class CImage
*/ */
const RESIZE = 1; const RESIZE = 1;
const RESAMPLE = 2; const RESAMPLE = 2;
private $copyStrategy = null; private $copyStrategy = NULL;

View File

@@ -101,7 +101,7 @@ class CRemoteImage
*/ */
public function setCache($path) public function setCache($path)
{ {
$this->saveFolder = $path; $this->saveFolder = rtrim($path, "/") . "/";
return $this; return $this;
} }