diff --git a/cachefile.php b/cachefile.php index fd1c752..8f6be19 100644 --- a/cachefile.php +++ b/cachefile.php @@ -24,7 +24,7 @@ class cachefile if (!mkdir ($this->directory)) throw new Exception (sprintf (_("Can not create cache directory %s"), $this->directory), 500); - chmod (0777, $this->directory); + chmod ($this->directory, 0666); } if (! is_writable ($this->directory)) throw new Exception (sprintf (_("Cache directory %s is not writable"), @@ -65,7 +65,7 @@ class cachefile "data"=>$data); file_put_contents ($fileCache, serialize ($datas)); unlink ($fileCache.".lock"); - chmod (0666, $fileCache); + chmod ($fileCache, 0666); return true; }