Find last "update_" config entry occurrence

This commit is contained in:
Philipp Holzer 2022-12-29 22:36:45 +01:00
parent 7c4c409060
commit 8894b482dc
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432

View file

@ -76,13 +76,13 @@ class DBSync extends BaseAdmin
$o = DI::l10n()->t("Executing %s failed with error: %s", $func, $retval); $o = DI::l10n()->t("Executing %s failed with error: %s", $func, $retval);
} elseif ($retval === Update::SUCCESS) { } elseif ($retval === Update::SUCCESS) {
$o = DI::l10n()->t('Update %s was successfully applied.', $func); $o = DI::l10n()->t('Update %s was successfully applied.', $func);
DI::config()->set('database', $func, 'success'); DI::keyValue()->set(sprintf('database_%s', $func), 'success');
} else { } else {
$o = DI::l10n()->t('Update %s did not return a status. Unknown if it succeeded.', $func); $o = DI::l10n()->t('Update %s did not return a status. Unknown if it succeeded.', $func);
} }
} else { } else {
$o = DI::l10n()->t('There was no additional update function %s that needed to be called.', $func) . "<br />"; $o = DI::l10n()->t('There was no additional update function %s that needed to be called.', $func) . "<br />";
DI::config()->set('database', $func, 'success'); DI::keyValue()->set(sprintf('database_%s', $func), 'success');
} }
return $o; return $o;