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
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-01-31 06:44:51 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-01-31 06:44:51 +0400
commit4bc46c347e19bc032861aa37cf903a250f247a78 (patch)
treef98f26752838945fd5ca1a8cfddefffe5d2ce90e /misc/cron/updatetoken.php
parentb0fb01781f2d509975dd58e535d7e5d9f103d599 (diff)
refs #4564 we have to get the token from the piwik_tests database
Diffstat (limited to 'misc/cron/updatetoken.php')
-rw-r--r--misc/cron/updatetoken.php5
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