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:
authorThomas Steur <tsteur@users.noreply.github.com>2018-12-14 02:42:52 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2018-12-14 02:42:51 +0300
commit3a655d1d6c393f5880f5f3de26ac39e317f15419 (patch)
tree77aafe65cd1159a62f8c483b5a97197524d8c98a /core/Session.php
parentc7f81068af579a073113f95c4bcedc4455c4037f (diff)
Tweak message when an error in session happens (#13857)
* Tweak message when an error in session happens refs https://github.com/matomo-org/matomo/issues/13852#issuecomment-447120918 * fix version number see https://github.com/matomo-org/matomo/commit/332f42c8798685d1a7df425ebfa42b35937b9b5f#r31671044
Diffstat (limited to 'core/Session.php')
-rw-r--r--core/Session.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/Session.php b/core/Session.php
index 836ec7cf50..07ab9887fa 100644
--- a/core/Session.php
+++ b/core/Session.php
@@ -134,7 +134,12 @@ class Session extends Zend_Session
we recommend that you <a href='https://matomo.org/faq/how-to-install/#faq_133' rel='noreferrer noopener' target='_blank'>enable database session storage</a>.";
}
- $pathToSessions = Filechecks::getErrorMessageMissingPermissions(self::getSessionsDirectory());
+ if (SettingsPiwik::isPiwikInstalled()) {
+ $pathToSessions = '';
+ } else {
+ $pathToSessions = Filechecks::getErrorMessageMissingPermissions(self::getSessionsDirectory());
+ }
+
$message = sprintf("Error: %s %s %s\n<pre>Debug: the original error was \n%s</pre>",
Piwik::translate('General_ExceptionUnableToStartSession'),
$pathToSessions,