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:
authorMatthieu Aubry <mattab@users.noreply.github.com>2017-12-15 01:01:29 +0300
committerGitHub <noreply@github.com>2017-12-15 01:01:29 +0300
commit8374eae8fea56fde73e5cb263f5bebcc4845d44c (patch)
treefacb36c1f8544d7529a69295f04d925427356d6c /plugins/Diagnostics
parent73fa23c8e6478e2b378fb6d255f042484486673f (diff)
in the console command diagnostics:run, display a success message when all checks are green (#12342)
Diffstat (limited to 'plugins/Diagnostics')
-rw-r--r--plugins/Diagnostics/Commands/Run.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/Diagnostics/Commands/Run.php b/plugins/Diagnostics/Commands/Run.php
index 24c3be51fa..0fde8bad41 100644
--- a/plugins/Diagnostics/Commands/Run.php
+++ b/plugins/Diagnostics/Commands/Run.php
@@ -9,6 +9,7 @@
namespace Piwik\Plugins\Diagnostics\Commands;
use Piwik\Container\StaticContainer;
+use Piwik\Piwik;
use Piwik\Plugin\ConsoleCommand;
use Piwik\Plugins\Diagnostics\Diagnostic\DiagnosticResult;
use Piwik\Plugins\Diagnostics\Diagnostic\DiagnosticResultItem;
@@ -65,6 +66,10 @@ class Run extends ConsoleCommand
return 1;
}
+ if(!$report->hasWarnings() && !$report->hasErrors()) {
+ $output->writeln(sprintf('<info>%s</info>', Piwik::translate('Installation_SystemCheckSummaryNoProblems')));
+ }
+
return 0;
}