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>2019-08-09 10:48:48 +0300
committerStefan Giehl <stefan@matomo.org>2019-08-09 10:48:48 +0300
commit31331820d138427726a8fede1b1b85f4d9040f36 (patch)
treebbb80d2b5cacfc76e09016eb14f22ac965b1d5a1 /plugins/Feedback
parent964a3211ea94e47e795fd231a16b62be02630a91 (diff)
Make sure test constant exists (#14737)
Not quite sure how this did not fail earlier or how this usually works but seeing an error around this in my logs: > www/piwik/plugins/Feedback/Feedback.php(117): Notice - Use of undefined constant PIWIK_TEST_MODE - assumed 'PIWIK_TEST_MODE' - Matomo 3.12.0-b1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
Diffstat (limited to 'plugins/Feedback')
-rw-r--r--plugins/Feedback/Feedback.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Feedback/Feedback.php b/plugins/Feedback/Feedback.php
index fd796ab5df..f7cace66e6 100644
--- a/plugins/Feedback/Feedback.php
+++ b/plugins/Feedback/Feedback.php
@@ -114,7 +114,7 @@ class Feedback extends \Piwik\Plugin
// needs to be protected not private for testing purpose
protected function isDisabledInTestMode()
{
- return PIWIK_TEST_MODE && !Common::getRequestVar('forceFeedbackTest', false);
+ return defined('PIWIK_TEST_MODE') && PIWIK_TEST_MODE && !Common::getRequestVar('forceFeedbackTest', false);
}
}