Skip to content

Commit

Permalink
Added registration status information for template in $nosecounterDat…
Browse files Browse the repository at this point in the history
…a->statusCount[$statusName]
  • Loading branch information
Fenrikur committed Jan 12, 2019
1 parent 4a7ab90 commit 95ae3dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Nosecounter.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ public function generate($templateFile = null, $outputFile = null) {
$nosecounterData->generatedIn = round((microtime(TRUE) - $startTime)*1000, 4);
$nosecounterData->generatedAt = $this->now;

$nosecounterData->statusCount = array();
foreach ($this->data[$this->year]['Status'] as $status => $count) {
$nosecounterData->statusCount[$status] = $count;
}

if($templateFile == null) {
return $nosecounterData;
} else {
Expand Down

0 comments on commit 95ae3dc

Please sign in to comment.