Skip to content
Extraits de code Groupes Projets
Valider e2d14cd5 rédigé par diosmosis's avatar diosmosis
Parcourir les fichiers

Add FrontController::init() to misc/cron/archive.php since it's needed there &...

Add FrontController::init() to misc/cron/archive.php since it's needed there & add TODO for deprecating misc/cron/archive.php.
parent e8805763
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -9,6 +9,9 @@
* @package Piwik
*/
// TODO: this file should be moved to an API method that is only accessible to the super user.
// then we can finally deprecate this file.
use Monolog\Handler\StreamHandler;
use Monolog\Logger;
use Piwik\Container\StaticContainer;
......@@ -82,6 +85,8 @@ if (isset($_SERVER['argv']) && Piwik\Console::isSupported()) {
$logger->pushHandler($handler);
}
\Piwik\FrontController::getInstance()->init();
$archiver = new Piwik\CronArchive();
if (!Piwik\Common::isPhpCliMode()) {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter