Skip to content

Commit

Permalink
Merge pull request #153 from ZAYEC77/patch-1
Browse files Browse the repository at this point in the history
improve config class
  • Loading branch information
colinmollenhour committed Sep 12, 2018
2 parents f0a4988 + 57d2b6f commit 0315aa8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/code/local/Cm/RedisSession/Model/Session/Config.php
Expand Up @@ -34,11 +34,11 @@ class Cm_RedisSession_Model_Session_Config implements \Cm\RedisSession\Handler\C
/**
* @var \Mage_Core_Model_Config_Element
*/
private $config;
protected $config;

public function __construct()
public function __construct($path = 'global/redis_session')
{
$this->config = Mage::getConfig()->getNode('global/redis_session') ?: new Mage_Core_Model_Config_Element('<root></root>');
$this->config = Mage::getConfig()->getNode($path) ?: new Mage_Core_Model_Config_Element('<root></root>');
}

/**
Expand Down

0 comments on commit 0315aa8

Please sign in to comment.