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:
@@ -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.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user