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

* Now returns statuscode 500 when something fails #55.

* Three different modes: strict, production, development #44.
* Three files for all-in-one `imgs.php`, `imgp.php`, `imgd.php` #73.
This commit is contained in:
Mikael Roos
2015-01-29 21:16:32 +01:00
parent bc4e04c3cb
commit 16a7a3dad5
10 changed files with 7906 additions and 38 deletions

View File

@@ -476,6 +476,9 @@ class CImage
$cache = $this->saveFolder . "/remote/";
if (!is_dir($cache)) {
if (!is_writable($this->saveFolder)) {
throw new Exception("Can not create remote cache, cachefolder not writable.");
}
mkdir($cache);
$this->log("The remote cache does not exists, creating it.");
}