Introduced isReachableFilePath() and isReadableFile().
[core.git] / inc / loader / class_ClassLoader.php
index 31fc9de2ee2f52b45658c768a124c987dc842016..11683c49963afd05d9d79552cdba9fe0b8a956d1 100644 (file)
@@ -235,7 +235,7 @@ class ClassLoader {
                } // END - if
 
                // IS the cache there?
-               if (file_exists($this->listCacheFQFN)) {
+               if (BaseFrameworkSystem::isReadableFile($this->listCacheFQFN)) {
                        // Get content
                        $cacheContent = file_get_contents($this->listCacheFQFN);
 
@@ -247,7 +247,7 @@ class ClassLoader {
                } // END - if
 
                // Does the class cache exist?
-               if (file_exists($this->classCacheFQFN)) {
+               if (BaseFrameworkSystem::isReadableFile($this->listCacheFQFN)) {
                        // Then include it
                        require($this->classCacheFQFN);