diff --git a/lib/Cake/Console/Command/Task/TestTask.php b/lib/Cake/Console/Command/Task/TestTask.php index 14776d278..3b8babf1f 100644 --- a/lib/Cake/Console/Command/Task/TestTask.php +++ b/lib/Cake/Console/Command/Task/TestTask.php @@ -279,7 +279,7 @@ class TestTask extends BakeTask { */ public function buildTestSubject($type, $class) { ClassRegistry::flush(); - App::import($type, $class); + App::uses($class, $type); $class = $this->getRealClassName($type, $class); if (strtolower($type) === 'model') { $instance = ClassRegistry::init($class); diff --git a/lib/Cake/Network/Email/CakeEmail.php b/lib/Cake/Network/Email/CakeEmail.php index 1b5f59f21..f0da7182f 100644 --- a/lib/Cake/Network/Email/CakeEmail.php +++ b/lib/Cake/Network/Email/CakeEmail.php @@ -24,7 +24,6 @@ App::uses('AbstractTransport', 'Network/Email'); App::uses('File', 'Utility'); App::uses('String', 'Utility'); App::uses('View', 'View'); -App::import('I18n', 'Multibyte'); /** * Cake e-mail class. @@ -980,7 +979,7 @@ class CakeEmail { * 'contentDisposition' => false * )); * }}} - * + * * Attach a file from string and specify additional properties: * * {{{ diff --git a/lib/Cake/Utility/Sanitize.php b/lib/Cake/Utility/Sanitize.php index 20f3a147d..5f8da1bbf 100644 --- a/lib/Cake/Utility/Sanitize.php +++ b/lib/Cake/Utility/Sanitize.php @@ -20,7 +20,7 @@ * @license http://www.opensource.org/licenses/mit-license.php MIT License */ -App::import('Model', 'ConnectionManager'); +App::uses('ConnectionManager', 'Model'); /** * Data Sanitization.