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
path: root/misc
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-06-01 09:07:16 +0300
committerdiosmosis <benaka@piwik.pro>2015-06-05 23:36:58 +0300
commit52bed8ed6fd9240f476a7bf8c739b4d7eabfc9ff (patch)
treed6e15510346664e4aa92c82ea7aacce4caea608b /misc
parent33cfb1d02cae5b1454d223f15acef9db1f65f77c (diff)
Create manipulator manually in proxy entrypoints instead of using TestingEnvironmentVariables::addHooks().
Diffstat (limited to 'misc')
-rw-r--r--misc/cron/updatetoken.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/cron/updatetoken.php b/misc/cron/updatetoken.php
index 007d41a600..21f28b8cdd 100644
--- a/misc/cron/updatetoken.php
+++ b/misc/cron/updatetoken.php
@@ -12,6 +12,8 @@
namespace Piwik;
use Piwik\Application\Environment;
+use Piwik\Tests\Framework\TestingEnvironmentManipulator;
+use Piwik\Tests\Framework\TestingEnvironmentVariables;
if (!defined('PIWIK_INCLUDE_PATH')) {
define('PIWIK_INCLUDE_PATH', realpath(dirname(__FILE__) . "/../.."));
@@ -35,7 +37,7 @@ $testmode = in_array('--testmode', $_SERVER['argv']);
if ($testmode) {
define('PIWIK_TEST_MODE', true);
- Tests\Framework\TestingEnvironmentVariables::addHooks();
+ Environment::addEnvironmentManipulator(new TestingEnvironmentManipulator(new TestingEnvironmentVariables()));
}
function getPiwikDomain()