From e802eae2a2690a80f217bcc2952a1adb100a7a77 Mon Sep 17 00:00:00 2001 From: mattab Date: Sat, 14 Sep 2013 12:38:59 +1200 Subject: Adding Filesystem class which contains file operations And factored out code in ServerFilesGenerator.php --- core/Session.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/Session.php') diff --git a/core/Session.php b/core/Session.php index 59e02a89a2..d89df96ea1 100644 --- a/core/Session.php +++ b/core/Session.php @@ -84,7 +84,7 @@ class Session extends Zend_Session // for "files", use our own folder to prevent local session file hijacking $sessionPath = self::getSessionsDirectory(); // We always call mkdir since it also chmods the directory which might help when permissions were reverted for some reasons - Common::mkdir($sessionPath); + Filesystem::mkdir($sessionPath); @ini_set('session.save_handler', 'files'); @ini_set('session.save_path', $sessionPath); @@ -131,7 +131,7 @@ class Session extends Zend_Session $message = sprintf("Error: %s %s %s\n
Debug: the original error was \n%s
", Piwik_Translate('General_ExceptionUnableToStartSession'), - Piwik::getErrorMessageMissingPermissions(Common::getPathToPiwikRoot() . '/tmp/sessions/'), + Piwik::getErrorMessageMissingPermissions(Filesystem::getPathToPiwikRoot() . '/tmp/sessions/'), $enableDbSessions, $e->getMessage() ); -- cgit v1.2.3