From a1fe093ab4cd5243ef3ff22ebd5f6814a6e1c4a7 Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Tue, 10 Mar 2015 16:30:24 +1300 Subject: Remove deprecated SettingsPiwik::rewriteTmpPathWithInstanceId() --- core/Session.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'core/Session.php') diff --git a/core/Session.php b/core/Session.php index 9e49987072..9733593205 100644 --- a/core/Session.php +++ b/core/Session.php @@ -124,8 +124,7 @@ class Session extends Zend_Session we recommend that you enable database session storage."; } - $pathToSessions = Filechecks::getErrorMessageMissingPermissions(Filesystem::getPathToPiwikRoot() . '/tmp/sessions/'); - $pathToSessions = SettingsPiwik::rewriteTmpPathWithInstanceId($pathToSessions); + $pathToSessions = Filechecks::getErrorMessageMissingPermissions(self::getSessionsDirectory()); $message = sprintf("Error: %s %s %s\n
Debug: the original error was \n%s
", Piwik::translate('General_ExceptionUnableToStartSession'), $pathToSessions, @@ -147,8 +146,7 @@ class Session extends Zend_Session */ public static function getSessionsDirectory() { - $path = PIWIK_USER_PATH . '/tmp/sessions'; - return SettingsPiwik::rewriteTmpPathWithInstanceId($path); + return StaticContainer::get('path.tmp') . '/sessions'; } public static function close() -- cgit v1.2.3