We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 31bf2cd6 authored by Brion Vibber's avatar Brion Vibber

quick hack -- switch order on inline convo view (comments in forward chron)

parent d806907b
......@@ -156,19 +156,25 @@ class ThreadedNoticeListItem extends NoticeListItem
function showEnd()
{
$notice = Notice::conversationStream($this->notice->conversation);
$this->out->elementStart('ul', 'notices threaded-notices xoxo');
$notices = array();
while ($notice->fetch()) {
if ($notice->id == $this->notice->id) {
// Skip!
continue;
}
$this->out->elementStart('li');
$item = new NoticeListItem($notice, $this->out);
$item->show();
$this->out->elementEnd('li');
$notices[] = clone($notice); // *grumble* inefficient as hell
}
if ($notices) {
$this->out->elementStart('ul', 'notices threaded-notices xoxo');
foreach (array_reverse($notices) as $notice) {
$this->out->elementStart('li');
$item = new NoticeListItem($notice, $this->out);
$item->show();
$this->out->elementEnd('li');
}
$this->out->elementEnd('ul');
}
$this->out->elementEnd('ul');
parent::showEnd();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment