[ci skip] A quick and dirty fix for allowing 'sess_driver' configuration
diff --git a/system/libraries/Session/Session.php b/system/libraries/Session/Session.php
index 0d444e8..518dc28 100644
--- a/system/libraries/Session/Session.php
+++ b/system/libraries/Session/Session.php
@@ -49,7 +49,6 @@
*/
public function __construct(array $params = array())
{
-
// No sessions under CLI
if (is_cli())
{
@@ -66,6 +65,11 @@
$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)
{