Skip to content

Commit

Permalink
Making import() ing a component ensure that the Component base class …
Browse files Browse the repository at this point in the history
…is loaded.
  • Loading branch information
markstory committed Sep 8, 2010
1 parent 0f23634 commit 4ff52da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cake/libs/configure.php
Expand Up @@ -1107,6 +1107,7 @@ private static function __settings($type, $plugin, $parent) {
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;
}
Expand Down

0 comments on commit 4ff52da

Please sign in to comment.