From 4ff52da57ebec3815be1765007148a00c8590f6b Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 7 Sep 2010 23:39:31 -0400 Subject: [PATCH] Making import() ing a component ensure that the Component base class is loaded. --- cake/libs/configure.php | 1 + 1 file changed, 1 insertion(+) diff --git a/cake/libs/configure.php b/cake/libs/configure.php index ce7289029..1b9b6707e 100644 --- a/cake/libs/configure.php +++ b/cake/libs/configure.php @@ -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; }