diff --git a/app/config/core.php b/app/config/core.php index 545b1c49401..9e930498d8a 100644 --- a/app/config/core.php +++ b/app/config/core.php @@ -247,11 +247,6 @@ */ //date_default_timezone_set('UTC'); -/** - * Add files or folders that should be ignored by CakePHP when scanning application folder. - */ - //Configure::write('ignorePaths', array('.svn', '.git', 'CVS', 'tests', 'templates', 'node_modules')); - /** * * Cache Engine Configuration diff --git a/cake/libs/configure.php b/cake/libs/configure.php index faa3ceec16d..f5e75eb1553 100644 --- a/cake/libs/configure.php +++ b/cake/libs/configure.php @@ -1035,10 +1035,7 @@ function __find($file, $recursive = true) { require LIBS . 'folder.php'; } $Folder =& new Folder(); - $ignorePaths = Configure::read('ignorePaths'); - if(empty($ignorePaths)) { - $ignorePaths = array('.svn', '.git', 'CVS', 'tests', 'templates'); - } + $ignorePaths = array('.svn', '.git', 'CVS', 'tests', 'templates', 'node_modules'); $directories = $Folder->tree($path, $ignorePaths, 'dir'); sort($directories); $this->__paths[$path] = $directories;