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:
-rw-r--r--core/CliMulti.php2
-rw-r--r--misc/cron/archive.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/core/CliMulti.php b/core/CliMulti.php
index 8ed4ceb616..6b463aec0d 100644
--- a/core/CliMulti.php
+++ b/core/CliMulti.php
@@ -338,7 +338,7 @@ class CliMulti {
return $results;
}
- public static function getSuperUserTokenAuths()
+ private static function getSuperUserTokenAuths()
{
$tokens = array();
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