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 /piwik.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 'piwik.php')
-rw-r--r--piwik.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/piwik.php b/piwik.php
index d14fc7015a..eb6a85f14d 100644
--- a/piwik.php
+++ b/piwik.php
@@ -12,16 +12,17 @@ $GLOBALS['PIWIK_TRACKER_DEBUG'] = false;
$GLOBALS['PIWIK_TRACKER_DEBUG_FORCE_SCHEDULED_TASKS'] = false;
define('PIWIK_ENABLE_TRACKING', true);
-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';
}
+
$GLOBALS['PIWIK_TRACKER_MODE'] = true;
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);