From: Sarven Capadisli Date: Thu, 25 Jun 2009 00:25:22 +0000 (+0000) Subject: Moved the attachment representation outside of the anchor so that X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fa57e717e3bbb01e0c19fcb30f3d67bd596c730f;p=quix0rs-gnu-social.git Moved the attachment representation outside of the anchor so that onclick, it doesn't follow through on the href (e.g., it would play the video in the overlay instead) --- diff --git a/lib/attachmentlist.php b/lib/attachmentlist.php index a2446a886a..60f9a27c0a 100644 --- a/lib/attachmentlist.php +++ b/lib/attachmentlist.php @@ -249,8 +249,8 @@ class Attachment extends AttachmentListItem $this->out->elementStart('div', 'entry-title'); $this->out->elementStart('a', $this->linkAttr()); $this->out->element('span', null, $this->linkTitle()); - $this->showRepresentation(); $this->out->elementEnd('a'); + $this->showRepresentation(); $this->out->elementEnd('div'); if (!empty($this->oembed->author_name) || !empty($this->oembed->provider)) {