mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
fixes #4452 for better performance
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6962 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
5047963a77
commit
c3c5898ebc
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class Component extends Object {
|
|||
if ($this->controller->components !== false) {
|
||||
$loaded = array();
|
||||
if (!in_array('Session', $this->controller->components)) {
|
||||
$this->controller->components = array_merge(array('Session'), $this->controller->components);
|
||||
array_unshift($this->controller->components, 'Session');
|
||||
}
|
||||
$loaded = $this->_loadComponents($loaded, $this->controller->components);
|
||||
|
||||
|
|
Loading…
Reference in a new issue