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:
authorvipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-05-26 18:50:41 +0400
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-05-26 18:50:41 +0400
commit0c12a2d2aa1373bf5f236b81712592402fd700bc (patch)
treee704a4dd7b0624025ebacb14b8ef66b2f16aff4b /index.php
parent25dcb57834c379d6c2488fbed5d89ba8d09d2c3c (diff)
fixes #631 - make set_include_path() conditional on presence of
Zend/Version.php
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/index.php b/index.php
index 57efbba53c..0e54fa1a6b 100755
--- a/index.php
+++ b/index.php
@@ -19,11 +19,13 @@ if(!defined('PIWIK_INCLUDE_PATH'))
define('PIWIK_INCLUDE_PATH', dirname(__FILE__));
}
-set_include_path(PIWIK_INCLUDE_PATH
- . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/libs/'
- . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/plugins/'
- . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/core/'
- . PATH_SEPARATOR . get_include_path());
+if((@include "Zend/Version.php") === false) {
+ set_include_path(PIWIK_INCLUDE_PATH
+ . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/core'
+ . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/libs'
+ . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/plugins'
+ . PATH_SEPARATOR . get_include_path());
+}
require_once "core/testMinimumPhpVersion.php";