From d8908967775edb38d74515e1260c56923f412094 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Sat, 12 Mar 2011 00:40:43 -0430 Subject: [PATCH] Updating Lib package usage in App::load() --- lib/Cake/Core/App.php | 2 +- lib/Cake/tests/cases/libs/cache.test.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Core/App.php b/lib/Cake/Core/App.php index 89d60a84b..3db3db5db 100644 --- a/lib/Cake/Core/App.php +++ b/lib/Cake/Core/App.php @@ -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; } diff --git a/lib/Cake/tests/cases/libs/cache.test.php b/lib/Cake/tests/cases/libs/cache.test.php index 433f3bb5e..5476f837a 100644 --- a/lib/Cake/tests/cases/libs/cache.test.php +++ b/lib/Cake/tests/cases/libs/cache.test.php @@ -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);