atdalīts no GNUsocial/gnu-social
When an attachment fails to load, it shouldn't destroy the whole layout by XRevan86
Šī revīzija ir iekļauta:
vecāks
8a07edec5f
revīzija
bf7f17474d
@ -81,7 +81,12 @@ class AttachmentListItem extends Widget
|
||||
function show()
|
||||
{
|
||||
$this->showStart();
|
||||
$this->showNoticeAttachment();
|
||||
try {
|
||||
$this->showNoticeAttachment();
|
||||
} catch (Exception $e) {
|
||||
$this->element('div', ['class'=>'error'], $e->getMessage());
|
||||
common_debug($e->getMessage());
|
||||
}
|
||||
$this->showEnd();
|
||||
}
|
||||
|
||||
|
Notiek ielāde…
x
Atsaukties uz šo jaunā problēmā
Block a user