Skip to content
Extraits de code Groupes Projets
Valider 7efe85ef rédigé par Matthieu Napoli's avatar Matthieu Napoli
Parcourir les fichiers

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.
parent 7d7ce2db
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -22,12 +22,10 @@ if (!defined('PIWIK_USER_PATH')) { ...@@ -22,12 +22,10 @@ if (!defined('PIWIK_USER_PATH')) {
define('PIWIK_USER_PATH', PIWIK_INCLUDE_PATH); define('PIWIK_USER_PATH', PIWIK_INCLUDE_PATH);
} }
if (!class_exists('Piwik\Console', false)) { define('PIWIK_ENABLE_DISPATCH', false);
define('PIWIK_ENABLE_DISPATCH', false); define('PIWIK_ENABLE_ERROR_HANDLER', false);
define('PIWIK_ENABLE_ERROR_HANDLER', false); define('PIWIK_ENABLE_SESSION_START', false);
define('PIWIK_ENABLE_SESSION_START', false); require_once PIWIK_INCLUDE_PATH . "/index.php";
require_once PIWIK_INCLUDE_PATH . "/index.php";
}
if (!empty($_SERVER['argv'][0])) { if (!empty($_SERVER['argv'][0])) {
$callee = $_SERVER['argv'][0]; $callee = $_SERVER['argv'][0];
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter