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
path: root/misc
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-04-19 13:31:49 +0300
committerdiosmosis <benaka@piwik.pro>2015-05-10 08:41:17 +0300
commite2d14cd5581ee3681c8daa28029df286def712f7 (patch)
treec663bb825018276f5c71c3f14b0307fb4e875486 /misc
parente8805763b4c5b6fed32db64aca05d6c135f7be5b (diff)
Add FrontController::init() to misc/cron/archive.php since it's needed there & add TODO for deprecating misc/cron/archive.php.
Diffstat (limited to 'misc')
-rw-r--r--misc/cron/archive.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/misc/cron/archive.php b/misc/cron/archive.php
index a1923e01e4..bb23083f03 100644
--- a/misc/cron/archive.php
+++ b/misc/cron/archive.php
@@ -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()) {