Merge pull request #8353 from MrPetovan/bug/8219-frio-fix-contact-csv-import
[frio] Enable file upload in settings form
This commit is contained in:
commit
057df09ffb
|
@ -251,6 +251,8 @@ function settings_post(App $a)
|
|||
unlink($_FILES['importcontact-filename']['tmp_name']);
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (!empty($_POST['resend_relocate'])) {
|
||||
|
@ -372,7 +374,7 @@ function settings_post(App $a)
|
|||
if ($email != $a->user['email']) {
|
||||
// check for the correct password
|
||||
if (!User::authenticate(intval(local_user()), $_POST['mpassword'])) {
|
||||
$err .= DI::l10n()->t('Wrong Password') . EOL;
|
||||
$err .= DI::l10n()->t('Wrong Password.');
|
||||
$email = $a->user['email'];
|
||||
}
|
||||
// check the email is valid
|
||||
|
@ -390,7 +392,7 @@ function settings_post(App $a)
|
|||
}
|
||||
|
||||
if (strlen($err)) {
|
||||
notice($err . EOL);
|
||||
notice($err);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
{{$nickname_block nofilter}}
|
||||
|
||||
<form action="settings" id="settings-form" method="post" autocomplete="off" >
|
||||
<form action="settings" id="settings-form" method="post" autocomplete="off" enctype="multipart/form-data">
|
||||
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
||||
|
||||
{{* We organize the settings in collapsable panel-groups *}}
|
||||
|
|
Loading…
Reference in a new issue