From d3deb13edf4df2d06d1c09269eec9b979fcb8a3d Mon Sep 17 00:00:00 2001 From: diosmosis Date: Wed, 26 Mar 2014 18:08:22 +0000 Subject: [PATCH] Fix build. --- piwik.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/piwik.php b/piwik.php index 4563dddffe4..4346bfb1856 100644 --- a/piwik.php +++ b/piwik.php @@ -15,7 +15,10 @@ $GLOBALS['PIWIK_TRACKER_DEBUG_FORCE_SCHEDULED_TASKS'] = false; define('PIWIK_ENABLE_TRACKING', true); -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'; }