Updating fixture task to change when CakeSchema is loaded to fix issues with errors being generated when baking new projects.

Fixes #226
This commit is contained in:
mark_story 2009-10-30 22:03:23 -04:00
parent 7bead5df30
commit bc26a6ab67

View file

@ -73,9 +73,6 @@ class FixtureTask extends Shell {
function __construct(&$dispatch) {
parent::__construct($dispatch);
$this->path = $this->params['working'] . DS . 'tests' . DS . 'fixtures' . DS;
if (!class_exists('CakeSchema')) {
App::import('Model', 'CakeSchema', false);
}
}
/**
@ -85,6 +82,10 @@ class FixtureTask extends Shell {
* @access public
*/
function execute() {
if (!class_exists('CakeSchema')) {
App::import('Model', 'CakeSchema', false);
}
if (empty($this->args)) {
$this->__interactive();
}