Fixing ViewTask and FixtureTask. $interactive was set to false, and methods were auto quitting. Fixes #437

This commit is contained in:
Mark Story 2010-03-08 21:18:53 -05:00
parent 7d81d81176
commit f8bc6de4ae
2 changed files with 3 additions and 1 deletions

View file

@ -106,7 +106,7 @@ class FixtureTask extends BakeTask {
* @access private
*/
function __interactive() {
$this->interactive = true;
$this->DbConfig->interactive = $this->Model->interactive = $this->interactive = true;
$this->hr();
$this->out(sprintf("Bake Fixture\nPath: %s", $this->path));
$this->hr();

View file

@ -211,6 +211,8 @@ class ViewTask extends BakeTask {
$this->out(sprintf("Bake View\nPath: %s", $this->path));
$this->hr();
$this->DbConfig->interactive = $this->Controller->interactive = $this->interactive = true;
if (empty($this->connection)) {
$this->connection = $this->DbConfig->getConfig();
}