From aff138ab0347002774f3beafb2b77fe2880d9526 Mon Sep 17 00:00:00 2001 From: diosmosis Date: Fri, 5 Jun 2015 13:35:44 -0700 Subject: Allow only a single EnvironmentManipulator instance to be specified in Environment.php. --- misc/cron/updatetoken.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc/cron/updatetoken.php') 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() -- cgit v1.2.3