mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
When specifying Session as a component and using Session flash messages, you end up with 'Paginator, Session, Session' which doesn't make sense. Added an array_unique to remove any duplicated components.
This commit is contained in:
parent
b6eb5624f8
commit
28ec1c40a5
1 changed files with 1 additions and 0 deletions
|
@ -188,6 +188,7 @@ class ControllerTask extends BakeTask {
|
||||||
if (strtolower($wannaUseSession) === 'y') {
|
if (strtolower($wannaUseSession) === 'y') {
|
||||||
array_push($components, 'Session');
|
array_push($components, 'Session');
|
||||||
}
|
}
|
||||||
|
array_unique($components);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
list($wannaBakeCrud, $wannaBakeAdminCrud) = $this->_askAboutMethods();
|
list($wannaBakeCrud, $wannaBakeAdminCrud) = $this->_askAboutMethods();
|
||||||
|
|
Loading…
Reference in a new issue