diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-05-28 02:45:25 +0400 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-05-28 02:45:25 +0400 |
commit | cb769d35031a6fc516790777ddb544e503d9b7c8 (patch) | |
tree | 0204658a4a081947ddf4e374cf44d8907acc523d /piwik.php | |
parent | 964b0a43ae4db6602ebb923b7d164bae2b478ef3 (diff) |
fixes #743 - optimize include path; refs #631
Diffstat (limited to 'piwik.php')
-rw-r--r-- | piwik.php | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -18,9 +18,8 @@ error_reporting(E_ALL|E_NOTICE); define('PIWIK_INCLUDE_PATH', dirname(__FILE__)); @ignore_user_abort(true); -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()); |