mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +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);
|
return array('class' => $type, 'suffix' => $type, 'path' => $path);
|
||||||
break;
|
break;
|
||||||
case 'component':
|
case 'component':
|
||||||
|
App::import('Core', 'Component', false);
|
||||||
if ($plugin) {
|
if ($plugin) {
|
||||||
$path = $pluginPath . DS . 'controllers' . DS . 'components' . DS;
|
$path = $pluginPath . DS . 'controllers' . DS . 'components' . DS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue