diff options
author | diosmosis <benaka@piwik.pro> | 2015-05-10 07:33:04 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-05-10 08:49:58 +0300 |
commit | c5b9b896f9a82fd5406b2f1a4c81e22bab677bbe (patch) | |
tree | 65a900b8423026df77bd511e3b193942b53391ae /misc | |
parent | 255d2992181952ea365bafa4c4988c900c851a18 (diff) |
Make CliMulti::getSuperUserTokenAuths private since it is only used there, and include bootstrap.php in archive.php cron script only when creating a Console instance.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/cron/archive.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/cron/archive.php b/misc/cron/archive.php index 0c0e971976..e04dab2e71 100644 --- a/misc/cron/archive.php +++ b/misc/cron/archive.php @@ -20,8 +20,6 @@ if (!defined('PIWIK_USER_PATH')) { define('PIWIK_ENABLE_ERROR_HANDLER', false); define('PIWIK_ENABLE_SESSION_START', false); -require_once PIWIK_INCLUDE_PATH . "/core/bootstrap.php"; - if (!empty($_SERVER['argv'][0])) { $callee = $_SERVER['argv'][0]; } else { @@ -44,6 +42,8 @@ try 'php archive.php --url=http://your.piwik/path' } if (Piwik\Common::isPhpCliMode()) { + require_once PIWIK_INCLUDE_PATH . "/core/bootstrap.php"; + $console = new Piwik\Console(); // manipulate command line arguments so CoreArchiver command will be executed |