Skip to content

Commit

Permalink
Fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis committed Mar 26, 2014
1 parent 0bce383 commit d3deb13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion piwik.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down

0 comments on commit d3deb13

Please sign in to comment.