summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session/Session.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-05-31 20:23:41 +0200
committerAndrey Andreev <narf@devilix.net>2014-05-31 20:23:41 +0200
commit34b1ef5c13882c4a7827be71e82503ee47d4c271 (patch)
tree419e2173cc34028c7aa76c52abcb5eddec96aab7 /system/libraries/Session/Session.php
parentbebf3a0e3bce2be795accf13c49681d0c195f84d (diff)
[ci skip] A quick and dirty fix for allowing 'sess_driver' configuration
Diffstat (limited to 'system/libraries/Session/Session.php')
-rw-r--r--system/libraries/Session/Session.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/system/libraries/Session/Session.php b/system/libraries/Session/Session.php
index 0d444e8ca..518dc28b0 100644
--- a/system/libraries/Session/Session.php
+++ b/system/libraries/Session/Session.php
@@ -49,7 +49,6 @@ class CI_Session {
*/
public function __construct(array $params = array())
{
-
// No sessions under CLI
if (is_cli())
{
@@ -66,6 +65,11 @@ class CI_Session {
$this->_driver = $params['driver'];
unset($params['driver']);
}
+ // Note: Make the autoloader pass sess_* params to this constructor
+ elseif (empty($params) && $driver = config_item('sess_driver'))
+ {
+ $this->_driver = $driver;
+ }
if (($class = $this->_ci_load_classes($this->_driver)) === FALSE)
{