diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-12-22 02:59:37 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-12-22 05:36:47 +0300 |
commit | 7efe85ef32abe0695377fd5131299bf7079a6c88 (patch) | |
tree | 52f95a4a487ac3fc41b18c31566c3486bd0cba00 /misc | |
parent | 7d7ce2dbc1fb5a7316f8ac5d38f35510b8daf036 (diff) |
Removed useless test in misc/cron/archive.php
In the past, `misc/cron/archive.php` used to be included in the console command `core:archive`. But not anymore, so this test can be removed.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/cron/archive.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/misc/cron/archive.php b/misc/cron/archive.php index 41dfb06d7e..69c5d1d118 100644 --- a/misc/cron/archive.php +++ b/misc/cron/archive.php @@ -22,12 +22,10 @@ if (!defined('PIWIK_USER_PATH')) { define('PIWIK_USER_PATH', PIWIK_INCLUDE_PATH); } -if (!class_exists('Piwik\Console', false)) { - define('PIWIK_ENABLE_DISPATCH', false); - define('PIWIK_ENABLE_ERROR_HANDLER', false); - define('PIWIK_ENABLE_SESSION_START', false); - require_once PIWIK_INCLUDE_PATH . "/index.php"; -} +define('PIWIK_ENABLE_DISPATCH', false); +define('PIWIK_ENABLE_ERROR_HANDLER', false); +define('PIWIK_ENABLE_SESSION_START', false); +require_once PIWIK_INCLUDE_PATH . "/index.php"; if (!empty($_SERVER['argv'][0])) { $callee = $_SERVER['argv'][0]; |