Reduce the parameter chaos by splitting the update function
This commit is contained in:
@@ -54,7 +54,7 @@ class DBSync extends BaseAdmin
|
||||
break;
|
||||
case 'check':
|
||||
// @TODO Seems like a similar logic like Update::check()
|
||||
$retval = DBStructure::update($a->getBasePath(), false, true);
|
||||
$retval = DBStructure::performUpdate();
|
||||
if ($retval === '') {
|
||||
$o = DI::l10n()->t("Database structure update %s was successfully applied.", DB_UPDATE_VERSION) . "<br />";
|
||||
} else {
|
||||
|
||||
@@ -82,7 +82,7 @@ class Summary extends BaseAdmin
|
||||
}
|
||||
|
||||
if (DI::config()->get('system', 'dbupdate', DBStructure::UPDATE_NOT_CHECKED) == DBStructure::UPDATE_NOT_CHECKED) {
|
||||
DBStructure::update($a->getBasePath(), false, true);
|
||||
DBStructure::performUpdate();
|
||||
}
|
||||
|
||||
if (DI::config()->get('system', 'dbupdate') == DBStructure::UPDATE_FAILED) {
|
||||
|
||||
Reference in New Issue
Block a user