refactor global array

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2018-12-21 20:51:44 +01:00
parent c5a58e3f36
commit 370ccbdb74
220 changed files with 2227 additions and 2244 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'] = $lng['traffic']['customer'];
$overview['type'] = \Froxlor\I18N\Lang::getAll()['traffic']['customer'];
$domain_list = '';
$totals = array(
'jan' => 0,
@@ -122,7 +122,7 @@ if ($page == 'overview' || $page == 'customers') {
}
// sum up totals
$virtual_host = array(
'name' => $lng['traffic']['months']['total']
'name' => \Froxlor\I18N\Lang::getAll()['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'));