mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing ViewTask and FixtureTask. $interactive was set to false, and methods were auto quitting. Fixes #437
This commit is contained in:
parent
7d81d81176
commit
f8bc6de4ae
2 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue