mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Making import() ing a component ensure that the Component base class is loaded.
This commit is contained in:
parent
0f23634382
commit
4ff52da57e
1 changed files with 1 additions and 0 deletions
|
@ -1107,6 +1107,7 @@ class App {
|
|||
return array('class' => $type, 'suffix' => $type, 'path' => $path);
|
||||
break;
|
||||
case 'component':
|
||||
App::import('Core', 'Component', false);
|
||||
if ($plugin) {
|
||||
$path = $pluginPath . DS . 'controllers' . DS . 'components' . DS;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue