1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

[ticket/15769] Make basic upload, refresh, and errors work

PHPBB3-15769
This commit is contained in:
Marc Alexander
2021-08-20 16:57:36 +02:00
parent b72379aaab
commit 1933a8ab47
4 changed files with 27 additions and 14 deletions

View File

@@ -711,6 +711,19 @@ class ucp_profile
trigger_error($message);
}
}
else if ($request->is_ajax())
{
$error = $phpbb_avatar_manager->localize_errors($user, $error);
$json_response = new \phpbb\json_response;
$json_response->send([
'success' => false,
'error' => [
'title' => $language->lang('INFORMATION'),
'messages' => $error,
],
]);
}
}
}
else