diff options
author | Evan Prodromou <evan@status.net> | 2009-12-14 17:48:14 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-12-14 17:48:14 -0500 |
commit | 607e98ee11f01a72a6ea7d755ce0f2dee68ff74a (patch) | |
tree | ee6acf28f2adf90a98ac33a32fe4dc4277ac319e | |
parent | d22364b35e33982b2f95146f9ac290a3606da28b (diff) |
make sure id of <li> in notice list is unique
-rw-r--r-- | lib/noticelist.php | 3 |
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)); } /** |