mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
07006c9e4a
commit
f1625a8ae4
1 changed files with 8 additions and 1 deletions
|
@ -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')) {
|
||||
|
|
Loading…
Reference in a new issue