convert validate/check functions

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2018-12-20 21:00:39 +01:00
parent 5888927239
commit b0df4e46d6
39 changed files with 952 additions and 1355 deletions

View File

@@ -297,7 +297,7 @@ if (\Froxlor\Froxlor::isFroxlorVersion('0.9.1')) {
$result = $result_stmt->fetch(PDO::FETCH_ASSOC);
if (isset($result['latestguid']) && (int) $result['latestguid'] > 0 && $result['latestguid'] != Settings::Get('system.lastguid')) {
checkLastGuid();
\Froxlor\System\Cronjob::checkLastGuid();
lastStepStatus(1, 'fixed');
} else {
lastStepStatus(0);

View File

@@ -44,7 +44,7 @@ if (\Froxlor\Froxlor::isFroxlor()) {
// Check Froxlor - database integrity (only happens after all updates are done, so we know the db-layout is okay)
showUpdateStep("Checking database integrity");
$integrity = new IntegrityCheck();
$integrity = new \Froxlor\Database\IntegrityCheck();
if (! $integrity->checkAll()) {
lastStepStatus(1, 'Monkeys ate the integrity');
showUpdateStep("Trying to remove monkeys, feeding bananas");