Merge pull request #5819 from JonnyTischbein/issue_install_db_inuse
Install: After detecting DB already in use, go back to db_stettings with error
This commit is contained in:
commit
0589d9ed2d
|
@ -125,13 +125,8 @@ function install_content(App $a) {
|
|||
if (DBA::$connected) {
|
||||
$r = q("SELECT COUNT(*) as `total` FROM `user`");
|
||||
if (DBA::isResult($r) && $r[0]['total']) {
|
||||
$tpl = get_markup_template('install.tpl');
|
||||
return replace_macros($tpl, [
|
||||
'$title' => $install_title,
|
||||
'$pass' => '',
|
||||
'$status' => L10n::t('Database already in use.'),
|
||||
'$text' => '',
|
||||
]);
|
||||
$install_wizard_pass = 2;
|
||||
$wizard_status = L10n::t('Database already in use.');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue