mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-10 01:56:52 +02:00
ready for merge #43
This commit is contained in:
@@ -297,7 +297,9 @@ class CRemoteImage
|
||||
$cacheFile = str_replace(["/", ":", "#", ".", "?"], "-", $this->url);
|
||||
$this->fileName = $this->saveFolder . $cacheFile;
|
||||
$this->fileJson = $this->fileName . ".json";
|
||||
$this->cache = json_decode(file_get_contents($this->fileJson), true);
|
||||
if (is_readable($this->fileJson)) {
|
||||
$this->cache = json_decode(file_get_contents($this->fileJson), true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user