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:
authordiosmosis <benaka@piwik.pro>2015-06-05 23:35:44 +0300
committerdiosmosis <benaka@piwik.pro>2015-06-06 00:35:46 +0300
commitaff138ab0347002774f3beafb2b77fe2880d9526 (patch)
tree5eaf67c103d2192a3b6d977bfbc92a2862cacac6 /misc/cron/updatetoken.php
parentcc9ee9f6111a8d7522dce014a47fda0730aabcaa (diff)
Allow only a single EnvironmentManipulator instance to be specified in Environment.php.
Diffstat (limited to 'misc/cron/updatetoken.php')
-rw-r--r--misc/cron/updatetoken.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/cron/updatetoken.php b/misc/cron/updatetoken.php
index 21f28b8cdd..c06684e4a3 100644
--- a/misc/cron/updatetoken.php
+++ b/misc/cron/updatetoken.php
@@ -37,7 +37,7 @@ $testmode = in_array('--testmode', $_SERVER['argv']);
if ($testmode) {
define('PIWIK_TEST_MODE', true);
- Environment::addEnvironmentManipulator(new TestingEnvironmentManipulator(new TestingEnvironmentVariables()));
+ Environment::setGlobalEnvironmentManipulator(new TestingEnvironmentManipulator(new TestingEnvironmentVariables()));
}
function getPiwikDomain()