projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a07ede
)
When an attachment fails to load, it shouldn't destroy the whole layout by XRevan86
author
Diogo Cordeiro
<diogo@fc.up.pt>
Thu, 25 Apr 2019 19:46:31 +0000
(20:46 +0100)
committer
Diogo Cordeiro
<diogo@fc.up.pt>
Thu, 25 Apr 2019 19:46:47 +0000
(20:46 +0100)
lib/attachmentlistitem.php
patch
|
blob
|
history
diff --git
a/lib/attachmentlistitem.php
b/lib/attachmentlistitem.php
index fe11dbe639141b631e8539f17d227b2a26fbdfdc..de1087d44cb75f360df589ecd4abfe8ed9566207 100644
(file)
--- a/
lib/attachmentlistitem.php
+++ b/
lib/attachmentlistitem.php
@@
-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();
}