Permalink
Browse files

Removing more if() blocks

Silencing Controller task in all()
  • Loading branch information...
1 parent 7cf7a04 commit 0099c8a4289cf9cb2560f87a05ab03e36c6d307f @markstory markstory committed Jun 5, 2009
Showing with 2 additions and 3 deletions.
  1. +2 −3 cake/console/libs/tasks/view.php
@@ -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) {
@@ -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);
}
}
}

0 comments on commit 0099c8a

Please sign in to comment.