diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-04-05 04:51:14 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-04-05 04:51:14 +0400 |
commit | 4ee66b2bb84c8f23beeb7b2ae22db96a1c6d11db (patch) | |
tree | 88f972feb62b83ec4bf9a19faaf2fefc88c1370d /core/Filechecks.php | |
parent | 4d0ea797ad97f6c9070a3005a2977bd8f9141065 (diff) |
Fix bug where file integrity message was not displayed.
Diffstat (limited to 'core/Filechecks.php')
-rw-r--r-- | core/Filechecks.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/core/Filechecks.php b/core/Filechecks.php index 7a82db5b2b..52cb995bad 100644 --- a/core/Filechecks.php +++ b/core/Filechecks.php @@ -116,15 +116,17 @@ class Filechecks $messages[] = true; $manifest = PIWIK_INCLUDE_PATH . '/config/manifest.inc.php'; + + if (file_exists($manifest)) { require_once $manifest; } if (!class_exists('Piwik\\Manifest')) { - $git = SettingsPiwik::getCurrentGitBranch(); - if(empty($git)) { - $messages[] = Piwik::translate('General_WarningFileIntegrityNoManifest') . ' ' . Piwik::translate('General_WarningFileIntegrityNoManifestDeployingFromGit'); - } + $messages[] = Piwik::translate('General_WarningFileIntegrityNoManifest') + . ' ' + . Piwik::translate('General_WarningFileIntegrityNoManifestDeployingFromGit'); + return $messages; } |