summaryrefslogtreecommitdiff
path: root/lib/noticelist.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-12-14 17:48:14 -0500
committerEvan Prodromou <evan@status.net>2009-12-14 17:48:14 -0500
commit607e98ee11f01a72a6ea7d755ce0f2dee68ff74a (patch)
treeee6acf28f2adf90a98ac33a32fe4dc4277ac319e /lib/noticelist.php
parentd22364b35e33982b2f95146f9ac290a3606da28b (diff)
make sure id of <li> in notice list is unique
Diffstat (limited to 'lib/noticelist.php')
-rw-r--r--lib/noticelist.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index 3ccb50230..dd0a361c0 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -243,8 +243,9 @@ class NoticeListItem extends Widget
{
// XXX: RDFa
// TODO: add notice_type class e.g., notice_video, notice_image
+ $id = (empty($this->repeat)) ? $this->notice->id : $this->repeat->id;
$this->out->elementStart('li', array('class' => 'hentry notice',
- 'id' => 'notice-' . $this->notice->id));
+ 'id' => 'notice-' . $id));
}
/**