Add APP/Package to tested paths in App::load()

This commit is contained in:
Matthew Lanigan 2012-01-30 10:31:35 -05:00
parent a275555297
commit 8ed4876830

View file

@ -538,6 +538,7 @@ class App {
if (empty($plugin)) { if (empty($plugin)) {
$appLibs = empty(self::$_packages['Lib']) ? APPLIBS : current(self::$_packages['Lib']); $appLibs = empty(self::$_packages['Lib']) ? APPLIBS : current(self::$_packages['Lib']);
$paths[] = $appLibs . $package . DS; $paths[] = $appLibs . $package . DS;
$paths[] = APP . $package . DS;
$paths[] = CAKE . $package . DS; $paths[] = CAKE . $package . DS;
} }