1
0
Fork 0

Merge pull request #10961 from annando/deprecated

Removed and replaced deprecated functionalities
This commit is contained in:
Hypolite Petovan 2021-11-07 10:53:17 -05:00 committed by GitHub
commit 8d550ad4e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 22 additions and 229 deletions

View file

@ -352,7 +352,8 @@ function item_post(App $a) {
$filedas = FileTag::fileToArray($categories);
}
$categories = FileTag::listToFile(trim($_REQUEST['category'] ?? ''), 'category');
$list_array = explode(',', trim($_REQUEST['category'] ?? ''));
$categories = FileTag::arrayToFile($list_array, 'category');
if (!empty($filedas) && is_array($filedas)) {
// append the fileas stuff to the new categories list

View file

@ -308,7 +308,9 @@ function settings_post(App $a)
if ($email != $user['email']) {
// check for the correct password
if (!User::authenticate(intval(local_user()), $_POST['mpassword'])) {
try {
User::getIdFromPasswordAuthentication(local_user(), $_POST['mpassword']);
} catch (Exception $ex) {
$err .= DI::l10n()->t('Wrong Password.');
$email = $user['email'];
}