diff options
author | robocoder <anthon.pang@gmail.com> | 2011-04-29 21:08:49 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2011-04-29 21:08:49 +0400 |
commit | 7b96da0d5b7d29f3d7cd518f21424c3d0962da64 (patch) | |
tree | f1337c4b3da6965cfe1ef6cdba0366a565f2aa97 /index.php | |
parent | a29f44f2f3d0dcc87ef932cea618f22748bed670 (diff) |
load bootstrap.php using an absolute path
git-svn-id: http://dev.piwik.org/svn/trunk@4599 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -9,9 +9,10 @@ * @package Piwik */ -if(file_exists('bootstrap.php')) +define('PIWIK_DOCUMENT_ROOT', dirname(__FILE__)=='/'?'':dirname(__FILE__)); +if(file_exists(PIWIK_DOCUMENT_ROOT . '/bootstrap.php')) { - require_once 'bootstrap.php'; + require_once PIWIK_DOCUMENT_ROOT . '/bootstrap.php'; } error_reporting(E_ALL|E_NOTICE); @@ -19,7 +20,6 @@ error_reporting(E_ALL|E_NOTICE); @ini_set('xdebug.show_exception_trace', 0); @ini_set('magic_quotes_runtime', 0); -define('PIWIK_DOCUMENT_ROOT', dirname(__FILE__)=='/'?'':dirname(__FILE__)); if(!defined('PIWIK_USER_PATH')) { define('PIWIK_USER_PATH', PIWIK_DOCUMENT_ROOT); |