mirror of
https://github.com/friendica/friendica
synced 2024-11-18 14:23:41 +00:00
Install: After detecting DB already in use, go back to db_stettings with error
This commit is contained in:
parent
743e7d3ecb
commit
07489a3a9c
1 changed files with 2 additions and 7 deletions
|
@ -125,13 +125,8 @@ function install_content(App $a) {
|
||||||
if (DBA::$connected) {
|
if (DBA::$connected) {
|
||||||
$r = q("SELECT COUNT(*) as `total` FROM `user`");
|
$r = q("SELECT COUNT(*) as `total` FROM `user`");
|
||||||
if (DBA::isResult($r) && $r[0]['total']) {
|
if (DBA::isResult($r) && $r[0]['total']) {
|
||||||
$tpl = get_markup_template('install.tpl');
|
$install_wizard_pass = 2;
|
||||||
return replace_macros($tpl, [
|
$wizard_status = L10n::t('Database already in use.');
|
||||||
'$title' => $install_title,
|
|
||||||
'$pass' => '',
|
|
||||||
'$status' => L10n::t('Database already in use.'),
|
|
||||||
'$text' => '',
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue