diff options
Diffstat (limited to 'app/views/stats/index.phtml')
| -rw-r--r-- | app/views/stats/index.phtml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/views/stats/index.phtml b/app/views/stats/index.phtml index 4e14d0fc7..b24b859b8 100644 --- a/app/views/stats/index.phtml +++ b/app/views/stats/index.phtml @@ -83,16 +83,15 @@ <div> <canvas id="statsEntriesPerDay"></canvas> <script class="jsonData-stats" type="application/json"> - <?php - echo json_encode(array( + <?= json_encode([ 'canvasID' => 'statsEntriesPerDay', 'charttype' => 'barWithAverage', 'labelBarChart' => _t('admin.stats.entry_count'), 'dataBarChart' => $this->entryCount, - 'labelAverage' => 'Average ('.$this->average.')', + 'labelAverage' => 'Average (' . $this->average . ')', 'dataAverage' => $this->average, 'xAxisLabels' => $this->last30DaysLabels, - ), JSON_UNESCAPED_UNICODE); + ], JSON_UNESCAPED_UNICODE) ?></script> </div> </div> |
