diff options
author | Robin Millette <millette@controlyourself.ca> | 2009-05-24 04:43:34 -0400 |
---|---|---|
committer | Robin Millette <millette@controlyourself.ca> | 2009-05-24 04:43:34 -0400 |
commit | b5ac6e31f2f148164860aeabec6899b75d7292ec (patch) | |
tree | 5016a9624a923793f231d066d7519e8e3a0a8075 /lib/attachmentlist.php | |
parent | 456f3eeb50fc1cafaa66ab5c0bdcdcaa5ca4bcd0 (diff) |
Rearranged attachment info to only appear on each applicable notice page and thru an ajax popup.
Diffstat (limited to 'lib/attachmentlist.php')
-rw-r--r-- | lib/attachmentlist.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/attachmentlist.php b/lib/attachmentlist.php index 9485fe3d6..1be7b2fee 100644 --- a/lib/attachmentlist.php +++ b/lib/attachmentlist.php @@ -191,7 +191,7 @@ class AttachmentListItem extends Widget } function linkAttr() { - return array('class' => 'attachment', 'href' => common_local_url('attachment', array('attachment' => $this->attachment->id))); + return array('class' => 'attachment', 'href' => $this->attachment->url, 'id' => 'attachment-' . $this->attachment->id); } function showLink() { @@ -200,10 +200,6 @@ class AttachmentListItem extends Widget $this->out->elementStart('h4'); $this->out->element('a', $attr, $text); - if ($this->attachment->url !== $this->title()) - $this->out->element('span', null, " ({$this->attachment->url})"); - - $this->out->elementEnd('h4'); } |