diff options
author | diosmosis <benaka@piwik.pro> | 2015-06-05 23:35:44 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-06-06 00:35:46 +0300 |
commit | aff138ab0347002774f3beafb2b77fe2880d9526 (patch) | |
tree | 5eaf67c103d2192a3b6d977bfbc92a2862cacac6 /misc | |
parent | cc9ee9f6111a8d7522dce014a47fda0730aabcaa (diff) |
Allow only a single EnvironmentManipulator instance to be specified in Environment.php.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/cron/updatetoken.php | 2 |
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() |