mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Corrects logic to only apply default filename in **all** cases where none provided.
This commit is contained in:
parent
6358208e32
commit
543e520ccb
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ class SchemaShell extends AppShell {
|
|||
}
|
||||
if ($name && empty($this->params['file'])) {
|
||||
$this->params['file'] = Inflector::underscore($name);
|
||||
} else {
|
||||
} elseif(empty($this->params['file'])) {
|
||||
$this->params['file'] = 'schema.php';
|
||||
}
|
||||
if (strpos($this->params['file'], '.php') === false) {
|
||||
|
|
Loading…
Add table
Reference in a new issue