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:
authordiosmosis <benaka@piwik.pro>2014-10-16 06:35:25 +0400
committerdiosmosis <benaka@piwik.pro>2014-10-16 06:37:39 +0400
commit8c48c25fe87d9668873329b39504b134dd05bc95 (patch)
treea93045df2b41b32e2f1a0b5fe47e6bb4b98a7168 /core/CronArchive.php
parent9cd63ae9929e891a86054207a9dbe4d28b98e32f (diff)
Fix CronArchive token_auth refactor.
Diffstat (limited to 'core/CronArchive.php')
-rw-r--r--core/CronArchive.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/core/CronArchive.php b/core/CronArchive.php
index 548435d438..a9987b7f9c 100644
--- a/core/CronArchive.php
+++ b/core/CronArchive.php
@@ -211,6 +211,8 @@ class CronArchive
{
$this->initLog();
$this->initPiwikHost($piwikUrl);
+ $this->initCore();
+ $this->initTokenAuth();
}
/**
@@ -230,8 +232,6 @@ class CronArchive
public function init()
{
// Note: the order of methods call matters here.
- $this->initCore();
- $this->initTokenAuth();
$this->initStateFromParameters();
$this->logInitInfo();
@@ -948,6 +948,11 @@ class CronArchive
$this->token_auth = $token;
}
+ public function getTokenAuth()
+ {
+ return $this->token_auth;
+ }
+
private function initPiwikHost($piwikUrl = false)
{
// If core:archive command run as a web cron, we use the current hostname+path