"Fixes #4436, App::import() loads wrong file"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6643 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2008-04-09 05:04:09 +00:00
parent 89c8467e89
commit 8a5505bdcc

View file

@ -830,7 +830,7 @@ class App extends Object {
}
}
if (empty($search) && $_this->__load($file)) {
if (strtolower($type) !== 'vendor' && empty($search) && $_this->__load($file)) {
$directory = false;
} else {
$file = $find;