diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-01-31 06:44:51 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-01-31 06:44:51 +0400 |
commit | 4bc46c347e19bc032861aa37cf903a250f247a78 (patch) | |
tree | f98f26752838945fd5ca1a8cfddefffe5d2ce90e /misc/cron | |
parent | b0fb01781f2d509975dd58e535d7e5d9f103d599 (diff) |
refs #4564 we have to get the token from the piwik_tests database
Diffstat (limited to 'misc/cron')
-rw-r--r-- | misc/cron/updatetoken.php | 5 |
1 files changed, 5 insertions, 0 deletions
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 |