Skip to content

Commit

Permalink
Fixing ViewTask and FixtureTask. $interactive was set to false, and m…
Browse files Browse the repository at this point in the history
…ethods were auto quitting. Fixes #437
  • Loading branch information
markstory committed Mar 9, 2010
1 parent 7d81d81 commit f8bc6de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cake/console/libs/tasks/fixture.php
Expand Up @@ -106,7 +106,7 @@ function all() {
* @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();
Expand Down
2 changes: 2 additions & 0 deletions cake/console/libs/tasks/view.php
Expand Up @@ -211,6 +211,8 @@ function __interactive() {
$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();
}
Expand Down

0 comments on commit f8bc6de

Please sign in to comment.