]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/cache_functions.php
config.php partly solved, see #117
[mailer.git] / inc / libs / cache_functions.php
index b5804821a5c00cb58aadc714b154d2156b655b87..1e38e1faf6763a3ba996c0b5ca1a358c0647789e 100644 (file)
@@ -119,7 +119,7 @@ class CacheSystem {
                // This will destory an existing cache file!
                if ($this->ret == $this->statusDone) {
                        // Create file
-                       if ($this->isCacheReadable()) chmod($this->fqfn, 0666);
+                       if ($this->isCacheReadable()) changeMode($this->fqfn, 0666);
                        $this->pointer = fopen($this->fqfn, 'w') or app_die(__METHOD__, __LINE__, "Cannot write to cache ".$this->fqfn." !");
 
                        // Add open PHP tag
@@ -172,7 +172,7 @@ class CacheSystem {
                        fclose($this->pointer);
 
                        // Set rights
-                       if ($this->isCacheReadable()) chmod($this->fqfn, 0666);
+                       if ($this->isCacheReadable()) changeMode($this->fqfn, 0666);
 
                        // Remove pointer
                        $this->pointer = false;