From 939d1c1be832472204aa000f003d1eba20a1edbb Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Mon, 22 Dec 2014 13:02:10 +1300 Subject: 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/ --- console | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'console') 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); } -- cgit v1.2.3