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:
authorrobocoder <anthon.pang@gmail.com>2011-04-29 21:08:49 +0400
committerrobocoder <anthon.pang@gmail.com>2011-04-29 21:08:49 +0400
commit7b96da0d5b7d29f3d7cd518f21424c3d0962da64 (patch)
treef1337c4b3da6965cfe1ef6cdba0366a565f2aa97 /index.php
parenta29f44f2f3d0dcc87ef932cea618f22748bed670 (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.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index f4a0b31a08..454ba1c910 100644
--- a/index.php
+++ b/index.php
@@ -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);