diff options
author | mattab <matthieu.aubry@gmail.com> | 2016-08-29 02:52:15 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2016-08-29 02:52:15 +0300 |
commit | 4b395d2385e0041973349c7575fc10378b85558e (patch) | |
tree | dc61ad8ebf3dbb6e6884c9675dd653edb09d34d3 /misc | |
parent | 3fcead8b2bc7d6a2e26d7f1101861ea44d563aef (diff) |
Fix issue when running archiving via the old archive.php path
Notice: Use of undefined constant PIWIK_DOCUMENT_ROOT - assumed 'PIWIK_DOCUMENT_ROOT' in plugins/CustomPiwikJs/Commands/UpdateTracker.php
Diffstat (limited to 'misc')
-rw-r--r-- | misc/cron/archive.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/misc/cron/archive.php b/misc/cron/archive.php index 0bc4daa1f1..e95e01ea8d 100644 --- a/misc/cron/archive.php +++ b/misc/cron/archive.php @@ -9,8 +9,12 @@ * @package Piwik */ +if (!defined('PIWIK_DOCUMENT_ROOT')) { + define('PIWIK_DOCUMENT_ROOT', realpath(dirname(__FILE__) . "/../..")); +} + if (!defined('PIWIK_INCLUDE_PATH')) { - define('PIWIK_INCLUDE_PATH', realpath(dirname(__FILE__) . "/../..")); + define('PIWIK_INCLUDE_PATH', PIWIK_DOCUMENT_ROOT); } if (!defined('PIWIK_USER_PATH')) { |