From 4bc46c347e19bc032861aa37cf903a250f247a78 Mon Sep 17 00:00:00 2001 From: Thomas Steur Date: Fri, 31 Jan 2014 02:44:51 +0000 Subject: refs #4564 we have to get the token from the piwik_tests database --- misc/cron/updatetoken.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'misc/cron') diff --git a/misc/cron/updatetoken.php b/misc/cron/updatetoken.php index 351d980c1d..f7cba2ab20 100644 --- a/misc/cron/updatetoken.php +++ b/misc/cron/updatetoken.php @@ -29,6 +29,11 @@ if (!Common::isPhpCliMode()) { return; } +$testmode = in_array('--testmode', $_SERVER['argv']); +if ($testmode) { + Config::getInstance()->setTestEnvironment(); +} + $token = Db::get()->fetchOne("SELECT token_auth FROM " . Common::prefixTable("user") . " WHERE superuser_access = 1 -- cgit v1.2.3