Updating test suite with correct paths.php

Changed vendor() to return true or false

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4434 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-02-04 02:08:17 +00:00
parent d4a4105616
commit 08c412c4ca
4 changed files with 28 additions and 34 deletions

View file

@ -614,15 +614,17 @@
function vendor($name) {
$args = func_get_args();
$c = func_num_args();
for ($i = 0; $i < $c; $i++) {
$arg = $args[$i];
if (file_exists(APP . 'vendors' . DS . $arg . '.php')) {
require_once(APP . 'vendors' . DS . $arg . '.php');
} else {
} elseif (file_exists(VENDORS . $arg . '.php')) {
require_once(VENDORS . $arg . '.php');
} else {
return false;
}
}
return true;
}
/**
* Normalizes a string or array list