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:
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