diff options
author | robocoder <anthon.pang@gmail.com> | 2009-07-29 12:10:18 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2009-07-29 12:10:18 +0400 |
commit | 66b8e6d4152455a388d0c2da0aa1a5720eafaf33 (patch) | |
tree | cf8a00be6abd31c156b0602fbab306403db0ccfa /index.php | |
parent | 083a24b9cb1fc39c4000726e88e168ef2ee27ce3 (diff) |
refs #886 - redo and extend change to visit generator and tests config
git-svn-id: http://dev.piwik.org/svn/trunk@1343 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -18,15 +18,15 @@ if(ini_get('session.save_handler') == 'user') @ini_set('session.save_path', ''); } -define('PIWIK_DOCUMENT_ROOT', dirname(__FILE__)); +if(file_exists('bootstrap.php')) +{ + require_once 'bootstrap.php'; +} if(!defined('PIWIK_INCLUDE_PATH')) { define('PIWIK_INCLUDE_PATH', dirname(__FILE__)); - if(file_exists(PIWIK_INCLUDE_PATH . '/bootstrap.php')) - { - require_once PIWIK_INCLUDE_PATH . '/bootstrap.php'; - } } +define('PIWIK_DOCUMENT_ROOT', dirname(__FILE__)); if((@include "Version.php") === false || !class_exists('Piwik_Version', false)) { |