Replace missing App->getURLPath in mod/install
This commit is contained in:
parent
339e76b314
commit
a419eff23a
|
@ -42,7 +42,6 @@ function install_post(App $a) {
|
||||||
return;
|
return;
|
||||||
break; // just in case return don't return :)
|
break; // just in case return don't return :)
|
||||||
case 3:
|
case 3:
|
||||||
$urlpath = $a->get_path();
|
|
||||||
$dbhost = notags(trim($_POST['dbhost']));
|
$dbhost = notags(trim($_POST['dbhost']));
|
||||||
$dbuser = notags(trim($_POST['dbuser']));
|
$dbuser = notags(trim($_POST['dbuser']));
|
||||||
$dbpass = notags(trim($_POST['dbpass']));
|
$dbpass = notags(trim($_POST['dbpass']));
|
||||||
|
@ -57,7 +56,7 @@ function install_post(App $a) {
|
||||||
return;
|
return;
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
$urlpath = $a->get_path();
|
$urlpath = $a->getURLPath();
|
||||||
$dbhost = notags(trim($_POST['dbhost']));
|
$dbhost = notags(trim($_POST['dbhost']));
|
||||||
$dbuser = notags(trim($_POST['dbuser']));
|
$dbuser = notags(trim($_POST['dbuser']));
|
||||||
$dbpass = notags(trim($_POST['dbpass']));
|
$dbpass = notags(trim($_POST['dbpass']));
|
||||||
|
@ -97,8 +96,6 @@ function install_content(App $a) {
|
||||||
$wizard_status = "";
|
$wizard_status = "";
|
||||||
$install_title = L10n::t('Friendica Communications Server - Setup');
|
$install_title = L10n::t('Friendica Communications Server - Setup');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (x($a->data, 'db_conn_failed')) {
|
if (x($a->data, 'db_conn_failed')) {
|
||||||
$install_wizard_pass = 2;
|
$install_wizard_pass = 2;
|
||||||
$wizard_status = L10n::t('Could not connect to database.');
|
$wizard_status = L10n::t('Could not connect to database.');
|
||||||
|
|
Loading…
Reference in a new issue