Revert "refactor global array"

This reverts commit 370ccbdb74.
This commit is contained in:
Michael Kaufmann
2018-12-22 08:15:31 +01:00
parent c800e89414
commit 7e39a7bc60
220 changed files with 2244 additions and 2227 deletions

View File

@@ -59,7 +59,7 @@ if ($page == 'overview' || $page == 'customers') {
for ($years = 0; $years <= $maxyears; $years ++) {
$overview['year'] = date("Y") - $years;
$overview['type'] = \Froxlor\I18N\Lang::getAll()['traffic']['customer'];
$overview['type'] = $lng['traffic']['customer'];
$domain_list = '';
$totals = array(
'jan' => 0,
@@ -122,7 +122,7 @@ if ($page == 'overview' || $page == 'customers') {
}
// sum up totals
$virtual_host = array(
'name' => \Froxlor\I18N\Lang::getAll()['traffic']['months']['total']
'name' => $lng['traffic']['months']['total']
);
foreach ($totals as $month => $bytes) {
$virtual_host[$month] = ($bytes == 0 ? '-' : \Froxlor\PhpHelper::size_readable($bytes, 'GiB', 'bi', '%01.' . (int) Settings::Get('panel.decimal_places') . 'f %s'));