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:
authormattab <matthieu.aubry@gmail.com>2013-09-30 10:11:35 +0400
committermattab <matthieu.aubry@gmail.com>2013-09-30 16:05:47 +0400
commit494d826ab4874ea85d55ce7e47b432abe35a4a5d (patch)
tree82d65784b0a509539022d559a45754bcb2f1f208 /core/Session.php
parente2de21361ae1a858e3b339fdb3b040b0429dac4f (diff)
Refs #4133
Diffstat (limited to 'core/Session.php')
-rw-r--r--core/Session.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/Session.php b/core/Session.php
index 221c62bac2..5f3c765a7a 100644
--- a/core/Session.php
+++ b/core/Session.php
@@ -128,9 +128,11 @@ class 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>.";
}
+ $pathToSessions = Filechecks::getErrorMessageMissingPermissions(Filesystem::getPathToPiwikRoot() . '/tmp/sessions/');
+ $pathToSessions = SettingsPiwik::rewriteTmpPathWithHostname($pathToSessions);
$message = sprintf("Error: %s %s %s\n<pre>Debug: the original error was \n%s</pre>",
Piwik_Translate('General_ExceptionUnableToStartSession'),
- Filechecks::getErrorMessageMissingPermissions(Filesystem::getPathToPiwikRoot() . '/tmp/sessions/'),
+ $pathToSessions,
$enableDbSessions,
$e->getMessage()
);
@@ -146,6 +148,7 @@ class Session extends Zend_Session
*/
public static function getSessionsDirectory()
{
+ //tmp
return PIWIK_USER_PATH . '/tmp/sessions';
}
}