Refactor
This commit is contained in:
parent
1f2057fb4c
commit
4e1aef1d3a
1 changed files with 7 additions and 7 deletions
|
@ -36,13 +36,6 @@ if ('POST' === $_SERVER['REQUEST_METHOD']) {
|
|||
|
||||
if ($sql) {
|
||||
$database->query($sql);
|
||||
|
||||
$page->messages[] = Page::success(
|
||||
sprintf(
|
||||
__('Database successfully migrated to %s.'),
|
||||
'v' . $version['version']
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -50,6 +43,13 @@ if ('POST' === $_SERVER['REQUEST_METHOD']) {
|
|||
/** Update version */
|
||||
$options->setOption('version', VERSION);
|
||||
$options->setOption('updateAvailable', false);
|
||||
|
||||
$page->messages[] = Page::success(
|
||||
sprintf(
|
||||
__('Database successfully migrated to %s.'),
|
||||
'v' . VERSION
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
$page->header();
|
||||
|
|
Loading…
Reference in a new issue