mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-05 11:02:40 +00:00
Made _stop() usage in Consoles / Tasks more consistent
This commit is contained in:
parent
54ca435517
commit
dad1f16eaf
12 changed files with 26 additions and 26 deletions
|
@ -289,7 +289,7 @@ class ControllerTask extends BakeTask {
|
|||
App::uses($modelImport, $plugin . 'Model');
|
||||
if (!class_exists($modelImport)) {
|
||||
$this->err(__d('cake_console', 'You must have a model for this class to build basic methods. Please try again.'));
|
||||
$this->_stop();
|
||||
return $this->_stop();
|
||||
}
|
||||
|
||||
$modelObj = ClassRegistry::init($currentModelName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue