Skip to content

Commit

Permalink
Do not run cron archiving last run check if matomo is not installed. (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis committed Mar 14, 2019
1 parent 7393e13 commit 285f284
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/Diagnostics/Diagnostic/CronArchivingLastRunCheck.php
Expand Up @@ -15,6 +15,7 @@
use Piwik\Metrics\Formatter;
use Piwik\Option;
use Piwik\Plugins\Intl\DateTimeFormatProvider;
use Piwik\SettingsPiwik;
use Piwik\Translation\Translator;

/**
Expand All @@ -36,6 +37,10 @@ public function __construct(Translator $translator)

public function execute()
{
if (!SettingsPiwik::isMatomoInstalled()) {
return [];
}

$label = $this->translator->translate('Diagnostics_CronArchivingLastRunCheck');
$commandToRerun = '<code>' . $this->getArchivingCommand() . '</code>';
$coreArchiveShort = '<code>core:archive</code>';
Expand Down

0 comments on commit 285f284

Please sign in to comment.