]> git.mxchange.org Git - friendica.git/commitdiff
Remove unused config variable
authorMichael <heluecht@pirati.ca>
Sat, 21 Nov 2020 15:15:58 +0000 (15:15 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 21 Nov 2020 15:15:58 +0000 (15:15 +0000)
src/Core/Update.php
src/Module/Admin/DBSync.php

index b2dc1a383a365caec78986463fbeb3d83b27a1b2..1d8f88d0123427ebfe72ca0b636c40ba94edf5d0 100644 (file)
@@ -154,8 +154,6 @@ class Update
                                                DI::lock()->release('dbupdate');
                                                return $retval;
                                        } else {
-                                               DI::config()->set('database', 'last_successful_update', $current);
-                                               DI::config()->set('database', 'last_successful_update_time', time());
                                                Logger::notice('Database structure update finished.', ['from' => $stored, 'to' => $current]);
                                        }
 
index 36f683e08731b059f761b584c69c3a199e9065d8..662fe08e27c5143199720d001c26da6adcffd847 100644 (file)
@@ -57,8 +57,6 @@ class DBSync extends BaseAdmin
                                $retval = DBStructure::update($a->getBasePath(), false, true);
                                if ($retval === '') {
                                        $o = DI::l10n()->t("Database structure update %s was successfully applied.", DB_UPDATE_VERSION) . "<br />";
-                                       DI::config()->set('database', 'last_successful_update', DB_UPDATE_VERSION);
-                                       DI::config()->set('database', 'last_successful_update_time', time());
                                } else {
                                        $o = DI::l10n()->t("Executing of database structure update %s failed with error: %s", DB_UPDATE_VERSION, $retval) . "<br />";
                                }