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:
DarkAngelBGE 2008-05-19 08:08:48 +00:00
parent 5047963a77
commit c3c5898ebc

View file

@ -55,7 +55,7 @@ class Component extends Object {
if ($this->controller->components !== false) { if ($this->controller->components !== false) {
$loaded = array(); $loaded = array();
if (!in_array('Session', $this->controller->components)) { 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); $loaded = $this->_loadComponents($loaded, $this->controller->components);