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:
authorFabian Becker <halfdan@xnorfz.de>2013-03-01 18:19:50 +0400
committerFabian Becker <halfdan@xnorfz.de>2013-03-01 18:19:50 +0400
commit23e77a0f8ccfcb128f9a22ad1b9c2a6715b50505 (patch)
tree8d7121af09cde84f9ccf0625bbd62d9378c1fc53 /core/Session.php
parent44ff74c2880234d6b42086cf0be4e4fdcfae02fe (diff)
More code cleanup and better use of Piwik::log
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);
}
}