mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
683be26bcb
commit
467ae1f4fd
1 changed files with 2 additions and 4 deletions
|
@ -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') {
|
||||||
|
|
Loading…
Reference in a new issue