From: Philipp Date: Thu, 29 Dec 2022 21:36:45 +0000 (+0100) Subject: Find last "update_" config entry occurrence X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8894b482dc9487c3e5dd6372f3d27b0775596e73;p=friendica.git Find last "update_" config entry occurrence --- diff --git a/src/Module/Admin/DBSync.php b/src/Module/Admin/DBSync.php index 3ab9fb799e..70d835fcd3 100644 --- a/src/Module/Admin/DBSync.php +++ b/src/Module/Admin/DBSync.php @@ -76,13 +76,13 @@ class DBSync extends BaseAdmin $o = DI::l10n()->t("Executing %s failed with error: %s", $func, $retval); } elseif ($retval === Update::SUCCESS) { $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 { $o = DI::l10n()->t('Update %s did not return a status. Unknown if it succeeded.', $func); } } else { $o = DI::l10n()->t('There was no additional update function %s that needed to be called.', $func) . "
"; - DI::config()->set('database', $func, 'success'); + DI::keyValue()->set(sprintf('database_%s', $func), 'success'); } return $o;