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);
|
$o = DI::l10n()->t("Executing %s failed with error: %s", $func, $retval);
|
||||||
} elseif ($retval === Update::SUCCESS) {
|
} elseif ($retval === Update::SUCCESS) {
|
||||||
$o = DI::l10n()->t('Update %s was successfully applied.', $func);
|
$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 {
|
} else {
|
||||||
$o = DI::l10n()->t('Update %s did not return a status. Unknown if it succeeded.', $func);
|
$o = DI::l10n()->t('Update %s did not return a status. Unknown if it succeeded.', $func);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$o = DI::l10n()->t('There was no additional update function %s that needed to be called.', $func) . "<br />";
|
$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;
|
return $o;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user