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>2016-10-04 07:14:57 +0300
committerGitHub <noreply@github.com>2016-10-04 07:14:57 +0300
commit4a393d72866b6a4a26cd1f8c4b063b115d6734f7 (patch)
tree4f70d2d78f5304038bedae4c9da91815f04587bf /plugins/Diagnostics
parent6ee57651d2b0a0a6856b0a5de671f8b179f0efb6 (diff)
Disable the warning about file integrity when in development mode (#10669)
Diffstat (limited to 'plugins/Diagnostics')
-rw-r--r--plugins/Diagnostics/Diagnostic/FileIntegrityCheck.php5
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);