$b; }; $events = $events->order_by($sort); $eventCount = count($events); $events = new IteratorIterator($events->getIterator()); $events->rewind(); $event = $events->current(); $htmlId = $options['html-id'] ?: ('thread-'.$this->getId()); $thread_attachments = array(); foreach (Attachment::objects()->filter(array( 'thread_entry__thread__id' => $this->getId(), ))->select_related('thread_entry', 'file') as $att) { $thread_attachments[$att->object_id][] = $att; } $tid = $this->getObJectId(); if ($this->getObjectType() == 'T') $ticket = Ticket::lookup($tid); ?>
'.__('No entries have been posted to this thread.').'
'; } ?>