Skip to content

Commit

Permalink
Removing more if() blocks
Browse files Browse the repository at this point in the history
Silencing Controller task in all()
  • Loading branch information
markstory committed Jun 5, 2009
1 parent 7cf7a04 commit 0099c8a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cake/console/libs/tasks/view.php
Expand Up @@ -159,6 +159,7 @@ function execute() {
**/
function all() {
$actions = $this->scaffoldActions;
$this->Controller->interactive = false;
$tables = $this->Controller->listAll($this->connection, false);
$this->interactive = false;
foreach ($tables as $table) {
Expand All @@ -167,9 +168,7 @@ function all() {
$this->controllerPath = Inflector::underscore($this->controllerName);
if (App::import('Model', $model)) {
$vars = $this->__loadController();
if ($vars) {
$this->bakeActions($actions, $vars);
}
$this->bakeActions($actions, $vars);
}
}
}
Expand Down

0 comments on commit 0099c8a

Please sign in to comment.