From 23e77a0f8ccfcb128f9a22ad1b9c2a6715b50505 Mon Sep 17 00:00:00 2001 From: Fabian Becker Date: Fri, 1 Mar 2013 15:19:50 +0100 Subject: More code cleanup and better use of Piwik::log --- core/Session.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'core/Session.php') 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 enable database session storage."; } - $message = 'Error: ' . Piwik_Translate('General_ExceptionUnableToStartSession') - . ' ' .Piwik::getErrorMessageMissingPermissions(Piwik_Common::getPathToPiwikRoot() . '/tmp/sessions/') - . $enableDbSessions - . "\n
Debug: the original error was \n". $e->getMessage()."
"; + $message = sprintf("Error: %s %s %s\n
Debug: the original error was \n%s
", + Piwik_Translate('General_ExceptionUnableToStartSession'), + Piwik::getErrorMessageMissingPermissions(Piwik_Common::getPathToPiwikRoot() . '/tmp/sessions/'), + $enableDbSessions, + $e->getMessage() + ); + Piwik_ExitWithMessage($message); } } -- cgit v1.2.3