diff options
author | mattab <matthieu.aubry@gmail.com> | 2015-07-12 19:22:19 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2015-07-12 19:22:19 +0300 |
commit | 31bf7ba6d233bd8b6e9954587966afa863a8f6f8 (patch) | |
tree | c46ff71e0b009f1307ecad22c9eaa082cd6b7cbd /misc/cron | |
parent | 691492e1de5441d4336110ade1c01bd45a352b38 (diff) |
Web archive: send output as plain text
Diffstat (limited to 'misc/cron')
-rw-r--r-- | misc/cron/archive.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/misc/cron/archive.php b/misc/cron/archive.php index 8897f108ee..1485942c89 100644 --- a/misc/cron/archive.php +++ b/misc/cron/archive.php @@ -26,6 +26,10 @@ if (!empty($_SERVER['argv'][0])) { $callee = ''; } +require_once PIWIK_INCLUDE_PATH . '/core/Common.php'; + +\Piwik\Common::sendHeader('Content-Type: text/plain; charset=utf-8'); + if (false !== strpos($callee, 'archive.php')) { $piwikHome = PIWIK_INCLUDE_PATH; echo " @@ -41,7 +45,6 @@ try 'php archive.php --url=http://your.piwik/path' \n\n"; } -require_once PIWIK_INCLUDE_PATH . '/core/Common.php'; if (Piwik\Common::isPhpCliMode()) { require_once PIWIK_INCLUDE_PATH . "/core/bootstrap.php"; |