diff options
author | diosmosis <benaka@piwik.pro> | 2014-10-16 06:35:25 +0400 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-10-16 06:37:39 +0400 |
commit | 8c48c25fe87d9668873329b39504b134dd05bc95 (patch) | |
tree | a93045df2b41b32e2f1a0b5fe47e6bb4b98a7168 /core | |
parent | 9cd63ae9929e891a86054207a9dbe4d28b98e32f (diff) |
Fix CronArchive token_auth refactor.
Diffstat (limited to 'core')
-rw-r--r-- | core/CronArchive.php | 9 |
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 |