Introduced isReachableFilePath() and isReadableFile().
[core.git] / inc / classes / main / images / extended / class_PngImage.php
index 74f70fb..ec0b89f 100644 (file)
@@ -65,7 +65,7 @@ class PngImage extends BaseImage {
                $cacheFile = $this->getTemplateInstance()->getImageCacheFqfn();
 
                // Does it exist?
-               if (file_exists($cacheFile)) {
+               if (BaseFrameworkSystem::isReadableFile($cacheFile)) {
                        // Remove it
                        @unlink($cacheFile);
                } // END - if