1
0
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:
Mikael Roos
2015-01-14 19:28:52 +01:00
parent f9704a4fbc
commit be98ae8979
4 changed files with 104 additions and 35 deletions

View File

@@ -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);
}
}