Fixing failing tests in SessionHelper caused by changes in CakeSession. Removing SessionHelper::id() as all it did was call the parent method.

This commit is contained in:
Mark Story 2010-03-28 17:41:58 -04:00
parent 068631ebe2
commit 17852ab3aa

View file

@ -52,6 +52,8 @@ class SessionHelper extends CakeSession {
function __construct($base = null) {
if (Configure::read('Session.start') === true) {
parent::__construct($base, false);
$this->start();
$this->__active = true;
} else {
$this->__active = false;
}
@ -176,27 +178,17 @@ class SessionHelper extends CakeSession {
trigger_error(__('You can not write to a Session from the view', true), E_USER_WARNING);
}
/**
* Session id
*
* @return string Session id
* @access public
*/
function id() {
return parent::id();
}
/**
* Determine if Session has been started
* and attempt to start it if not
*
* @return boolean true if Session is already started, false if
* Session could not be started
* @access public
* @access private
*/
function __start() {
if (!parent::started()) {
parent::start();
if (!$this->started()) {
return $this->start();
}
return true;
}