Removing check that prevents bootstrapping paths that do not contain the

type of object contained.  Example plugins would not be found in the
following path /var/www/common/  as it does not contain 'plugins'

Signed-off-by: Mark Story <mark@mark-story.com>
This commit is contained in:
dogmatic 2010-01-05 01:23:06 +02:00 committed by Mark Story
parent 683be26bcb
commit 467ae1f4fd

View file

@ -822,10 +822,8 @@ class App extends Object {
$items = array(); $items = array();
foreach ((array)$path as $dir) { foreach ((array)$path as $dir) {
if ($type === 'file' || $type === 'class' || strpos($dir, $type) !== false) {
$items = $_this->__list($dir, $types[$type]['suffix'], $extension); $items = $_this->__list($dir, $types[$type]['suffix'], $extension);
$objects = array_merge($items, array_diff($objects, $items)); $objects = array_merge($items, array_diff($objects, $items));
}
} }
if ($type !== 'file') { if ($type !== 'file') {