diff options
Diffstat (limited to 'misc/cron/archive.php')
-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')) { |