Updating Lib package usage in App::load()

This commit is contained in:
Jose Lorenzo Rodriguez 2011-03-12 00:40:43 -04:30
parent bab30bd48d
commit d890896777
2 changed files with 2 additions and 2 deletions

View file

@ -490,7 +490,7 @@ class App {
$paths = self::path($package, $plugin);
if (empty($plugin)) {
$appLibs = empty(self::$__packages['libs']) ? APPLIBS : current(self::$__packages['libs']);
$appLibs = empty(self::$__packages['Lib']) ? APPLIBS : current(self::$__packages['Lib']);
$paths[] = $appLibs . self::$__classMap[$className] . DS;
$paths[] = LIBS . self::$__classMap[$className] . DS;
}

View file

@ -89,7 +89,7 @@ class CacheTest extends CakeTestCase {
*/
function testConfigWithLibAndPluginEngines() {
App::build(array(
'libs' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'libs' . DS),
'Lib' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'libs' . DS),
'plugins' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'plugins' . DS)
), true);