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:
authormattab <matthieu.aubry@gmail.com>2013-10-08 04:03:28 +0400
committermattab <matthieu.aubry@gmail.com>2013-10-08 04:03:28 +0400
commitb738433faba6e80fb28123038700aaa4fa2ae7ef (patch)
treecec2e5ab60673b5e60aa4a269248a6d1d3b752ba /core/Filechecks.php
parentded987ac03cf76a297179fbe4cb2189294e40185 (diff)
Refs #4059 Converting updates files to use namespaces
Diffstat (limited to 'core/Filechecks.php')
-rw-r--r--core/Filechecks.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/core/Filechecks.php b/core/Filechecks.php
index 1ccb648d19..d85c246c52 100644
--- a/core/Filechecks.php
+++ b/core/Filechecks.php
@@ -112,13 +112,14 @@ class Filechecks
$messages[] = true;
$manifest = PIWIK_INCLUDE_PATH . '/config/manifest.inc.php';
- if (!file_exists($manifest)) {
- $suffix = " If you are deploying Piwik from Git, this message is normal.";
- $messages[] = Piwik_Translate('General_WarningFileIntegrityNoManifest') . $suffix;
- return $messages;
+ if (file_exists($manifest)) {
+ require_once $manifest;
}
- require_once $manifest;
+ if(!class_exists('\\Piwik\\Manifest')){
+ $messages[] = Piwik_Translate('General_WarningFileIntegrityNoManifest') . " If you are deploying Piwik from Git, this message is normal.";
+ return $messages;
+ }
$files = \Piwik\Manifest::$files;