Skip to content

Commit

Permalink
Fixing failing tests in SessionHelper caused by changes in CakeSessio…
Browse files Browse the repository at this point in the history
…n. Removing SessionHelper::id() as all it did was call the parent method.
  • Loading branch information
markstory authored and predominant committed Mar 28, 2010
1 parent df544f2 commit 95c1ab3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cake/libs/view/helpers/session.php
Expand Up @@ -57,6 +57,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;
}
Expand Down Expand Up @@ -180,11 +182,11 @@ function write() {
*
* @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;
}
Expand Down

0 comments on commit 95c1ab3

Please sign in to comment.