forked from GNUsocial/gnu-social
		
	quick hack -- switch order on inline convo view (comments in forward chron)
This commit is contained in:
		| @@ -156,19 +156,25 @@ class ThreadedNoticeListItem extends NoticeListItem | |||||||
|     function showEnd() |     function showEnd() | ||||||
|     { |     { | ||||||
|         $notice = Notice::conversationStream($this->notice->conversation); |         $notice = Notice::conversationStream($this->notice->conversation); | ||||||
|  |         $notices = array(); | ||||||
|         $this->out->elementStart('ul', 'notices threaded-notices xoxo'); |  | ||||||
|         while ($notice->fetch()) { |         while ($notice->fetch()) { | ||||||
|             if ($notice->id == $this->notice->id) { |             if ($notice->id == $this->notice->id) { | ||||||
|                 // Skip! |                 // Skip! | ||||||
|                 continue; |                 continue; | ||||||
|             } |             } | ||||||
|  |             $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'); |                 $this->out->elementStart('li'); | ||||||
|                 $item = new NoticeListItem($notice, $this->out); |                 $item = new NoticeListItem($notice, $this->out); | ||||||
|                 $item->show(); |                 $item->show(); | ||||||
|                 $this->out->elementEnd('li'); |                 $this->out->elementEnd('li'); | ||||||
|             } |             } | ||||||
|             $this->out->elementEnd('ul'); |             $this->out->elementEnd('ul'); | ||||||
|  |         } | ||||||
|  |  | ||||||
|         parent::showEnd(); |         parent::showEnd(); | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user