Finishing vendors function to allow loading of plugin vendors files

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5209 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-05-27 04:10:33 +00:00
parent 07006c9e4a
commit f1625a8ae4

View file

@ -687,7 +687,14 @@
$arg = $args[$i];
if(strpos($arg, '.') !== false){
list($plugin, $arg) = explode('.', $arg);
$file = explode('.', $arg);
$plugin = Inflector::underscore($file[0]);
unset($file[0]);
$file = implode('.', $file);
if (file_exists(APP . 'plugins' . DS . $plugin . DS . 'vendors' . DS . $file . '.php')) {
require_once(APP . 'plugins' . DS . $plugin . DS . 'vendors' . DS . $file . '.php');
continue;
}
}
if (file_exists(APP . 'vendors' . DS . $arg . '.php')) {