Skip to content

Commit

Permalink
Fixing regression introduced in commit c2d19c2, closes #258
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jan 25, 2010
1 parent c2d19c2 commit 9c24c72
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cake/libs/configure.php
Expand Up @@ -1003,7 +1003,6 @@ function &getInstance() {
*/
function __find($file, $recursive = true) {
static $appPath = false;
static $libsPath = false;

if (empty($this->search)) {
return null;
Expand All @@ -1018,11 +1017,10 @@ function __find($file, $recursive = true) {
foreach ($this->search as $path) {
if ($appPath === false) {
$appPath = rtrim(APP, DS);
$libsPath = rtrim(LIBS, DS);
}
$path = rtrim($path, DS);

if ($path === $appPath || $path === $libsPath) {
if ($path === $appPath) {
$recursive = false;
}
if ($recursive === false) {
Expand Down

0 comments on commit 9c24c72

Please sign in to comment.