Find last "update_" config entry occurrence
This commit is contained in:
parent
7c4c409060
commit
8894b482dc
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue