mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-19 16:10:54 +00:00
Removing more if() blocks
Silencing Controller task in all()
This commit is contained in:
parent
7cf7a0440c
commit
0099c8a428
1 changed files with 2 additions and 3 deletions
|
@ -159,6 +159,7 @@ class ViewTask extends Shell {
|
||||||
**/
|
**/
|
||||||
function all() {
|
function all() {
|
||||||
$actions = $this->scaffoldActions;
|
$actions = $this->scaffoldActions;
|
||||||
|
$this->Controller->interactive = false;
|
||||||
$tables = $this->Controller->listAll($this->connection, false);
|
$tables = $this->Controller->listAll($this->connection, false);
|
||||||
$this->interactive = false;
|
$this->interactive = false;
|
||||||
foreach ($tables as $table) {
|
foreach ($tables as $table) {
|
||||||
|
@ -167,12 +168,10 @@ class ViewTask extends Shell {
|
||||||
$this->controllerPath = Inflector::underscore($this->controllerName);
|
$this->controllerPath = Inflector::underscore($this->controllerName);
|
||||||
if (App::import('Model', $model)) {
|
if (App::import('Model', $model)) {
|
||||||
$vars = $this->__loadController();
|
$vars = $this->__loadController();
|
||||||
if ($vars) {
|
|
||||||
$this->bakeActions($actions, $vars);
|
$this->bakeActions($actions, $vars);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles interactive baking
|
* Handles interactive baking
|
||||||
|
|
Loading…
Add table
Reference in a new issue