make sure id of <li> in notice list is unique

This commit is contained in:
Evan Prodromou 2009-12-14 17:48:14 -05:00
parent d22364b35e
commit 607e98ee11

View File

@ -243,8 +243,9 @@ class NoticeListItem extends Widget
{ {
// XXX: RDFa // XXX: RDFa
// TODO: add notice_type class e.g., notice_video, notice_image // 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', $this->out->elementStart('li', array('class' => 'hentry notice',
'id' => 'notice-' . $this->notice->id)); 'id' => 'notice-' . $id));
} }
/** /**