From aec9f1ebf043baa2c23cf2cbcba94220a5e2d031 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 21 Nov 2020 15:15:58 +0000 Subject: [PATCH] Remove unused config variable --- src/Core/Update.php | 2 -- src/Module/Admin/DBSync.php | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/Core/Update.php b/src/Core/Update.php index b2dc1a383a..1d8f88d012 100644 --- a/src/Core/Update.php +++ b/src/Core/Update.php @@ -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]); } diff --git a/src/Module/Admin/DBSync.php b/src/Module/Admin/DBSync.php index 36f683e087..662fe08e27 100644 --- a/src/Module/Admin/DBSync.php +++ b/src/Module/Admin/DBSync.php @@ -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) . "
"; - 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) . "
"; }