]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/cache_functions.php
Code cosmetics applied
[mailer.git] / inc / libs / cache_functions.php
index b5804821a5c00cb58aadc714b154d2156b655b87..4dfed15897d770f3a997001f0523f7fdba06c8de 100644 (file)
@@ -76,7 +76,7 @@ class CacheSystem {
                        // Is the file there?
                        if (isFileReadable($fqfn)) {
                                // Yes, we can do. So let's remove it
-                               unlink($fqfn);
+                               removeFile($fqfn);
 
                                // Is there a .htaccess file?
                                if (isFileReadable($path . '.htaccess')) {
@@ -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;
@@ -234,7 +234,7 @@ class CacheSystem {
 
                        // Remove cache file from system
                        //* DEBUG: */ print __METHOD__."(<font color=\"#0000aa\">".__LINE__."</font>): {$this->name} - DESTROYED!<br />\n";
-                       unlink($this->fqfn);
+                       removeFile($this->fqfn);
                        // @TODO remove from $GLOBALS['cache_array']!!!
 
                        // Is the file there?