update ui class and traffic stats

This commit is contained in:
envoyr
2022-03-18 12:53:34 +01:00
parent ba0d33392c
commit 69895943bd
41 changed files with 90927 additions and 16754 deletions

View File

@@ -115,14 +115,13 @@ if ($page == 'overview') {
]
];
UI::twigBuffer('user/form-note.html.twig', [
UI::view('user/form-note.html.twig', [
'formaction' => $linker->getLink(array('section' => 'autoupdate', 'page' => 'getdownload')),
'formdata' => $upd_formfield['updates'],
// alert
'type' => 'warning',
'alert_msg' => $text
]);
UI::twigOutputBuffer();
} elseif ($isnewerversion == 0) {
// all good
\Froxlor\UI\Response::standard_success('noupdatesavail');
@@ -260,14 +259,13 @@ elseif ($page == 'extract') {
]
];
UI::twigBuffer('user/form-note.html.twig', [
UI::view('user/form-note.html.twig', [
'formaction' => $linker->getLink(array('section' => 'autoupdate', 'page' => 'extract')),
'formdata' => $upd_formfield['updates'],
// alert
'type' => 'warning',
'alert_msg' => $text
]);
UI::twigOutputBuffer();
} // display error
elseif ($page == 'error') {