diff options
author | robocoder <anthon.pang@gmail.com> | 2009-05-28 02:45:25 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2009-05-28 02:45:25 +0400 |
commit | 7d6ba208948710b78336a4c63a072ddfd21b979a (patch) | |
tree | 0204658a4a081947ddf4e374cf44d8907acc523d /index.php | |
parent | 86627301f3aebde559dfc94a1d32049e9fcc183e (diff) |
fixes #743 - optimize include path; refs #631
git-svn-id: http://dev.piwik.org/svn/trunk@1150 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'index.php')
-rwxr-xr-x | index.php | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -19,9 +19,8 @@ if(!defined('PIWIK_INCLUDE_PATH')) define('PIWIK_INCLUDE_PATH', dirname(__FILE__)); } -if((@include "Zend/Version.php") === false) { - set_include_path(PIWIK_INCLUDE_PATH - . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/core' +if((@include "Version.php") === false || !class_exists('Piwik_Version')) { + set_include_path(PIWIK_INCLUDE_PATH . '/core' . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/libs' . PATH_SEPARATOR . PIWIK_INCLUDE_PATH . '/plugins' . PATH_SEPARATOR . get_include_path()); |