]> git.mxchange.org Git - friendica.git/commitdiff
Find last "update_" config entry occurrence
authorPhilipp <admin@philipp.info>
Thu, 29 Dec 2022 21:36:45 +0000 (22:36 +0100)
committerPhilipp <admin@philipp.info>
Thu, 29 Dec 2022 21:36:45 +0000 (22:36 +0100)
src/Module/Admin/DBSync.php

index 3ab9fb799ea9424a87b0cb25561122f58b192e3e..70d835fcd39e1fe84371114fcc7205b8729a8ae0 100644 (file)
@@ -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) . "<br />";
-                                               DI::config()->set('database', $func, 'success');
+                                               DI::keyValue()->set(sprintf('database_%s', $func), 'success');
                                        }
 
                                        return $o;