Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobocoder <anthon.pang@gmail.com>2011-05-23 02:09:30 +0400
committerrobocoder <anthon.pang@gmail.com>2011-05-23 02:09:30 +0400
commitdfae3186b96196143636ba1586d570d42edd2c6e (patch)
tree84ed62ba1f7c5550a4b6ce0b986ed5756d3e0d6d /core/Session.php
parent5afba0efacdb9f3b9f81ae15aa86ed658015e656 (diff)
refs #1279
git-svn-id: http://dev.piwik.org/svn/trunk@4772 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Session.php')
-rw-r--r--core/Session.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/core/Session.php b/core/Session.php
index 75eeacaecb..4ab5e35964 100644
--- a/core/Session.php
+++ b/core/Session.php
@@ -20,7 +20,7 @@ class Piwik_Session extends Zend_Session
{
public static function start($options = false)
{
- if(Piwik_Common::isPhpCliMode())
+ if(Piwik_Common::isPhpCliMode() || version_compare(Piwik_GetOption('version_core'), '1.5-b5') < 0)
{
return;
}
@@ -76,12 +76,6 @@ class Piwik_Session extends Zend_Session
try {
Zend_Session::start();
} catch(Exception $e) {
- if(Zend_Registry::get('db')->isErrNo($e, '1146')
- && version_compare(Piwik_GetOption('version_core'), '1.5-b5') < 0)
- {
- return;
- }
-
Piwik::log('Unable to start session: ' . $e->getMessage());
Piwik_ExitWithMessage(Piwik_Translate('General_ExceptionUnableToStartSession'));
}