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:
authormattab <matthieu.aubry@gmail.com>2013-11-19 07:25:51 +0400
committermattab <matthieu.aubry@gmail.com>2013-11-19 07:25:51 +0400
commit6eb132dd5ea4073abbdd6071940a63b7caf1efc9 (patch)
tree354564cc0629049673879f61d9af33592e4d0ace /index.php
parent7146deafbd85f2f061780224ce8e9cc23c3813c4 (diff)
Consistent and prevent notice
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.php b/index.php
index 45269261c3..d0c197362c 100644
--- a/index.php
+++ b/index.php
@@ -12,7 +12,9 @@ use Piwik\Error;
use Piwik\ExceptionHandler;
use Piwik\FrontController;
-define('PIWIK_DOCUMENT_ROOT', dirname(__FILE__) == '/' ? '' : dirname(__FILE__));
+if(!defined('PIWIK_DOCUMENT_ROOT')) {
+ define('PIWIK_DOCUMENT_ROOT', dirname(__FILE__) == '/' ? '' : dirname(__FILE__));
+}
if (file_exists(PIWIK_DOCUMENT_ROOT . '/bootstrap.php')) {
require_once PIWIK_DOCUMENT_ROOT . '/bootstrap.php';
}