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 <diosmosis@users.noreply.github.com>2019-03-14 06:51:38 +0300
committerGitHub <noreply@github.com>2019-03-14 06:51:38 +0300
commit285f28470d5e8eacf0b6238c03be47f6673e4e24 (patch)
tree113059eee2dd7b1e67502074077a9a3352489881 /plugins/Diagnostics
parent7393e13b1cd8deda984037192d3d9c13e3cd67aa (diff)
Do not run cron archiving last run check if matomo is not installed. (#14202)
Diffstat (limited to 'plugins/Diagnostics')
-rw-r--r--plugins/Diagnostics/Diagnostic/CronArchivingLastRunCheck.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/Diagnostics/Diagnostic/CronArchivingLastRunCheck.php b/plugins/Diagnostics/Diagnostic/CronArchivingLastRunCheck.php
index b5e47b62de..0ec2762588 100644
--- a/plugins/Diagnostics/Diagnostic/CronArchivingLastRunCheck.php
+++ b/plugins/Diagnostics/Diagnostic/CronArchivingLastRunCheck.php
@@ -15,6 +15,7 @@ use Piwik\Date;
use Piwik\Metrics\Formatter;
use Piwik\Option;
use Piwik\Plugins\Intl\DateTimeFormatProvider;
+use Piwik\SettingsPiwik;
use Piwik\Translation\Translator;
/**
@@ -36,6 +37,10 @@ class CronArchivingLastRunCheck implements Diagnostic
public function execute()
{
+ if (!SettingsPiwik::isMatomoInstalled()) {
+ return [];
+ }
+
$label = $this->translator->translate('Diagnostics_CronArchivingLastRunCheck');
$commandToRerun = '<code>' . $this->getArchivingCommand() . '</code>';
$coreArchiveShort = '<code>core:archive</code>';