]> git.mxchange.org Git - shipsimu.git/commitdiff
.svn directory ignored by many loaders
authorRoland Häder <roland@mxchange.org>
Sun, 8 Jun 2008 20:51:01 +0000 (20:51 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 8 Jun 2008 20:51:01 +0000 (20:51 +0000)
application/selector/class_ApplicationSelector.php
inc/classes/main/database/databases/class_LocalFileDatabase.php
inc/classes/middleware/compressor/class_CompressorChannel.php
inc/loader/class_ClassLoader.php

index 5a03d60b023d954663d059957bce966089948c5f..ac5f1adbb98a6a1c69a964e2a8e421cd2d2854fd 100644 (file)
@@ -47,6 +47,7 @@ class ApplicationSelector extends BaseFrameworkSystem {
                ".",
                "..",
                ".htaccess"
+               ".svn"
        );
 
        /**
index 25cc4ba6d52887b51f600b1b5280796fc61f689a..db1d87e90aa7ccac0db9deaf5a22a26bbf733f8d 100644 (file)
@@ -259,7 +259,7 @@ class LocalFileDatabase extends BaseDatabaseFrontend implements DatabaseFrontend
 
                // Initialize the search loop
                $isValid = false;
-               while ($dataFile = $dirInstance->readDirectoryExcept(array(".", "..", ".htaccess"))) {
+               while ($dataFile = $dirInstance->readDirectoryExcept(array(".", "..", ".htaccess", ".svn"))) {
                        // Generate FQFN for testing
                        $fqfn = sprintf("%s/%s", $pathName, $dataFile);
                        $this->setLastFile($fqfn);
@@ -559,7 +559,7 @@ class LocalFileDatabase extends BaseDatabaseFrontend implements DatabaseFrontend
                        );
 
                        // Read the directory with some exceptions
-                       while ($dataFile = $directoryInstance->readDirectoryExcept(array(".", "..", ".htaccess"))) {
+                       while ($dataFile = $directoryInstance->readDirectoryExcept(array(".", "..", ".htaccess", ".svn"))) {
                                $this->partialStub(sprintf("File %s found.", $dataFile));
                        } // END - while
 
index 73305150e08c173a90a651dc81549f1ad6a20a4c..e51275160b4aadc8b6d78155e3fb55425ab8b26c 100644 (file)
@@ -65,7 +65,7 @@ class CompressorChannel extends BaseMiddleware {
                        $dirPointer = FrameworkDirectoryPointer::createFrameworkDirectoryPointer($baseDir);
 
                        // Read all directories but no sub directories
-                       while ($dir = $dirPointer->readDirectoryExcept(array("..", ".", ".htaccess"))) {
+                       while ($dir = $dirPointer->readDirectoryExcept(array("..", ".", ".htaccess", ".svn"))) {
                                // Is this a class file?
                                if ((substr($dir, 0, 6) == "class_") && (substr($dir, -4, 4) == FrameworkConfiguration::getInstance()->readConfig('php_extension'))) {
                                        // Get the compressor's name. That's why you must name
index 825f8bf2703181136350d423ddb99a23d1fcc229..a82f95118f01bdfea6607487fd34e64a87ecfca3 100644 (file)
@@ -144,6 +144,7 @@ class ClassLoader {
                $ignoreList[] = ".";
                $ignoreList[] = "..";
                $ignoreList[] = ".htaccess";
+               $ignoreList[] = ".svn";
 
                // Keep it in class for later usage
                $this->ignoreList = $ignoreList;