summaryrefslogtreecommitdiff
path: root/lib/attachmentlist.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@csarven-laptop.(none)>2009-05-24 19:49:02 -0400
committerSarven Capadisli <csarven@csarven-laptop.(none)>2009-05-24 19:49:02 -0400
commit31743dd36807e520702c29973eacd067717a74b7 (patch)
tree1617c5ef67d16c917b6f09b30e66da43f1939b3f /lib/attachmentlist.php
parent5a1c95d52fdca199957e47903819d16acaea590e (diff)
parent69f9bce276d86538c176e0c26e734ba694119864 (diff)
Merge branch '0.8.x' of git://gitorious.org/laconica/dev into 0.8.x
Diffstat (limited to 'lib/attachmentlist.php')
-rw-r--r--lib/attachmentlist.php6
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');
}