diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2014-03-31 00:27:27 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2014-03-31 00:30:07 +0400 |
commit | 8caf2dfadb648ece2c47c4a5ffe810f8687313a6 (patch) | |
tree | 7a5546c31fe494b42f049d985bedefb89e103082 /misc | |
parent | 43d1a17cb1004e859757c9c0173f52cf78dc9dcf (diff) |
Add main() method to CronArchive to call individual methods.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/cron/archive.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/misc/cron/archive.php b/misc/cron/archive.php index 384fdc707f..42b0093c03 100644 --- a/misc/cron/archive.php +++ b/misc/cron/archive.php @@ -43,10 +43,7 @@ To get help use '/path/to/php $piwikHome/console core:archive --help' $archiving = new Piwik\CronArchive(); try { - $archiving->init(); - $archiving->run(); - $archiving->runScheduledTasks(); - $archiving->end(); + $archiving->main(); } catch (Piwik\CronArchiveFatalException $ex) { $ex->logAndExit($archiving); } catch (Exception $e) { |