Merge pull request #1677 from dereuromark/master-cleanup

App::import to App::uses
This commit is contained in:
Mark Story 2013-09-25 11:40:17 -07:00
commit 1c148c28f0
3 changed files with 3 additions and 4 deletions

View file

@ -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);

View file

@ -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:
*
* {{{

View file

@ -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.