diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2016-10-04 07:14:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-04 07:14:57 +0300 |
commit | 4a393d72866b6a4a26cd1f8c4b063b115d6734f7 (patch) | |
tree | 4f70d2d78f5304038bedae4c9da91815f04587bf /plugins | |
parent | 6ee57651d2b0a0a6856b0a5de671f8b179f0efb6 (diff) |
Disable the warning about file integrity when in development mode (#10669)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Diagnostics/Diagnostic/FileIntegrityCheck.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/Diagnostics/Diagnostic/FileIntegrityCheck.php b/plugins/Diagnostics/Diagnostic/FileIntegrityCheck.php index 454237418d..7393877175 100644 --- a/plugins/Diagnostics/Diagnostic/FileIntegrityCheck.php +++ b/plugins/Diagnostics/Diagnostic/FileIntegrityCheck.php @@ -7,6 +7,7 @@ */ namespace Piwik\Plugins\Diagnostics\Diagnostic; +use Piwik\Development; use Piwik\Filechecks; use Piwik\Translation\Translator; @@ -29,6 +30,10 @@ class FileIntegrityCheck implements Diagnostic { $label = $this->translator->translate('Installation_SystemCheckFileIntegrity'); + if(Development::isEnabled()) { + return array(DiagnosticResult::singleResult($label, DiagnosticResult::STATUS_OK)); + } + $messages = Filechecks::getFileIntegrityInformation(); $ok = array_shift($messages); |