From 0ae69aace90c9219437839270b9db9605f39df65 Mon Sep 17 00:00:00 2001 From: euromark Date: Wed, 25 Sep 2013 19:40:14 +0200 Subject: [PATCH] App::import to App::uses --- lib/Cake/Console/Command/Task/TestTask.php | 2 +- lib/Cake/Network/Email/CakeEmail.php | 3 +-- lib/Cake/Utility/Sanitize.php | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) 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.