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:
authorMatthieu Napoli <matthieu@mnapoli.fr>2014-12-22 03:02:10 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2014-12-22 05:36:47 +0300
commit939d1c1be832472204aa000f003d1eba20a1edbb (patch)
tree8c488726a5b07ac409ef306ca4ef0d64702d4315 /console
parent7efe85ef32abe0695377fd5131299bf7079a6c88 (diff)
The console now includes the optional file bootstrap.php
Users can add a custom `bootstrap.php` file at the root of Piwik to customize constants. This file is included (if exists) in `index.php` and `piwik.php` but not in the console. This is now fixed. See the user docs about this: http://piwik.org/docs/include-piwik-in-your-project/
Diffstat (limited to 'console')
-rwxr-xr-xconsole5
1 files changed, 5 insertions, 0 deletions
diff --git a/console b/console
index a0bba7da39..020b0d2706 100755
--- a/console
+++ b/console
@@ -3,6 +3,11 @@
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';
+}
+
if (!defined('PIWIK_INCLUDE_PATH')) {
define('PIWIK_INCLUDE_PATH', PIWIK_DOCUMENT_ROOT);
}