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:
-rw-r--r--misc/cron/archive.php6
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')) {