From 2e0f2c75f48695b4685891be8336843da636522f Mon Sep 17 00:00:00 2001 From: mark_story Date: Wed, 29 Dec 2010 10:44:15 -0500 Subject: [PATCH] Fixing issue where ClassRegistry would not be loaded when using Models in shells. Fixes #1417 --- cake/console/shells/shell.php | 1 + 1 file changed, 1 insertion(+) diff --git a/cake/console/shells/shell.php b/cake/console/shells/shell.php index 797b88f96..dd59dbb2c 100644 --- a/cake/console/shells/shell.php +++ b/cake/console/shells/shell.php @@ -218,6 +218,7 @@ class Shell extends Object { if ($this->uses === null || $this->uses === false) { return; } + App::import('Core', 'ClassRegistry'); if ($this->uses !== true && !empty($this->uses)) { $uses = is_array($this->uses) ? $this->uses : array($this->uses);