Skip to content

Commit

Permalink
Fix notice
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed Apr 3, 2014
1 parent 263b070 commit 644b63f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions core/CronArchive.php
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ private function archiveVisitsAndSegments($idsite, $period, $lastTimestampWebsit

$url .= self::APPEND_TO_API_REQUEST;

$visitsInLastPeriods = 0;
$visitsInLastPeriods = $visitsLastPeriod = 0;
$success = true;

$urls = array();
Expand Down Expand Up @@ -1206,7 +1206,7 @@ public function __construct($message, $fullOutput = null)
$this->fullOutput = $fullOutput;
}

public function logAndExit(CronArchive $cronArchiver)
public function logAndExit(CronArchive$cronArchiver)
{
if ($cronArchiver->isCoreInited()) {
$cronArchiver->logError($this->getMessage());
Expand Down
4 changes: 2 additions & 2 deletions plugins/CoreConsole/Commands/CoreArchiver.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ static public function configureArchiveCommand(ConsoleCommand $command)
$command->addOption('force-all-periods', null, InputOption::VALUE_OPTIONAL, "Limits archiving to websites with some traffic in the last [seconds] seconds. \nFor example --force-all-periods=86400 will archive websites that had visits in the last 24 hours. \nIf [seconds] is not specified, all websites with visits in the last " . CronArchive::ARCHIVE_SITES_WITH_TRAFFIC_SINCE . "\n seconds (" . round(CronArchive::ARCHIVE_SITES_WITH_TRAFFIC_SINCE / 86400) . " days) will be archived.");
$command->addOption('force-timeout-for-periods', null, InputOption::VALUE_OPTIONAL, "The current week/ current month/ current year will be processed at most every [seconds].\nIf not specified, defaults to " . CronArchive::SECONDS_DELAY_BETWEEN_PERIOD_ARCHIVES . ".");
$command->addOption('force-date-last-n', null, InputOption::VALUE_REQUIRED, "This script calls the API with period=lastN. You can force the N in lastN by specifying this value.");
$command->addOption("force-idsites", null, InputOption::VALUE_OPTIONAL, 'If specified, archiving will be processed only for these Sites Ids (comma separated)');
$command->addOption("skip-idsites", null, InputOption::VALUE_OPTIONAL, 'If specified, archiving will be skipped for these websites (in case these website ids would have been archived).');
$command->addOption('force-idsites', null, InputOption::VALUE_OPTIONAL, 'If specified, archiving will be processed only for these Sites Ids (comma separated)');
$command->addOption('skip-idsites', null, InputOption::VALUE_OPTIONAL, 'If specified, archiving will be skipped for these websites (in case these website ids would have been archived).');
$command->addOption('disable-scheduled-tasks', null, InputOption::VALUE_NONE, "Skips executing Scheduled tasks (sending scheduled reports, db optimization, etc.).");
$command->addOption('xhprof', null, InputOption::VALUE_NONE, "Enables XHProf profiler for this archive.php run. Requires XHPRof (see tests/README.xhprof.md).");
$command->addOption('accept-invalid-ssl-certificate', null, InputOption::VALUE_NONE, "It is _NOT_ recommended to use this argument. Instead, you should use a valid SSL certificate!\nIt can be useful if you specified --url=https://... or if you are using Piwik with force_ssl=1");
Expand Down
2 changes: 1 addition & 1 deletion plugins/CustomAlerts
2 changes: 1 addition & 1 deletion tests/PHPUnit/UI
Submodule UI updated from 6e2b09 to a87886

0 comments on commit 644b63f

Please sign in to comment.