diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-02-21 02:37:53 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-02-21 02:37:53 +0400 |
commit | c2e87b5721645126dc9bd732cf134c9c6c9c0553 (patch) | |
tree | 4b2ae33cc228089e8c23c4ae4c89d78b11db97fe /core/Session.php | |
parent | 23936f179ca543797f5ecbddf02cb3ae711d6c50 (diff) |
I think it somehow makes sense to start a session in CLI.
Diffstat (limited to 'core/Session.php')
-rw-r--r-- | core/Session.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/Session.php b/core/Session.php index d4f14dc26f..871ae1650a 100644 --- a/core/Session.php +++ b/core/Session.php @@ -39,8 +39,7 @@ class Session extends Zend_Session */ public static function start($options = false) { - if (Common::isPhpCliMode() - || self::$sessionStarted + if (self::$sessionStarted || (defined('PIWIK_ENABLE_SESSION_START') && !PIWIK_ENABLE_SESSION_START) ) { return; |