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:
Diffstat (limited to 'core/Session.php')
-rw-r--r--core/Session.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/core/Session.php b/core/Session.php
index 119bbf6397..8f5f5912ab 100644
--- a/core/Session.php
+++ b/core/Session.php
@@ -129,10 +129,13 @@ class Piwik_Session extends Zend_Session
we recommend that you <a href='http://piwik.org/faq/how-to-install/#faq_133' target='_blank'>enable database session storage</a>.";
}
- $message = 'Error: ' . Piwik_Translate('General_ExceptionUnableToStartSession')
- . ' ' .Piwik::getErrorMessageMissingPermissions(Piwik_Common::getPathToPiwikRoot() . '/tmp/sessions/')
- . $enableDbSessions
- . "\n<pre>Debug: the original error was \n". $e->getMessage()."</pre>";
+ $message = sprintf("Error: %s %s %s\n<pre>Debug: the original error was \n%s</pre>",
+ Piwik_Translate('General_ExceptionUnableToStartSession'),
+ Piwik::getErrorMessageMissingPermissions(Piwik_Common::getPathToPiwikRoot() . '/tmp/sessions/'),
+ $enableDbSessions,
+ $e->getMessage()
+ );
+
Piwik_ExitWithMessage($message);
}
}