]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/attachment.php
change default timeout setting for HTTPClient
[quix0rs-gnu-social.git] / lib / attachment.php
index 813b9b4eff2b36dd3610733d7e19cf1a62067ec9..d001337dd6c6957806fe282afdc2d023552fbba1 100644 (file)
@@ -35,7 +35,7 @@ if (!defined('GNUSOCIAL')) { exit(1); }
  */
 class Attachment extends AttachmentListItem
 {
-    function showLink() {
+    function showNoticeAttachment() {
         if (Event::handle('StartShowAttachmentLink', array($this->out, $this->attachment))) {
             $this->out->elementStart('div', array('id' => 'attachment_view',
                                                   'class' => 'h-entry'));
@@ -43,9 +43,9 @@ class Attachment extends AttachmentListItem
             $this->out->element('a', $this->linkAttr(), _('Download link'));
             $this->out->elementEnd('div');
 
-            $this->out->elementStart('div', 'e-content');
+            $this->out->elementStart('article', 'e-content');
             $this->showRepresentation();
-            $this->out->elementEnd('div');
+            $this->out->elementEnd('article');
             Event::handle('EndShowAttachmentLink', array($this->out, $this->attachment));
             $this->out->elementEnd('div');
         }