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:
@@ -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
|
||||
|
Reference in New Issue
Block a user