From 0057f3da81f074be30f7e005e5b79b58a7c3acc7 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 1 Jul 2009 14:45:09 -0400 Subject: [PATCH 1/2] show all the notices, not just latest 20 --- actions/conversation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/conversation.php b/actions/conversation.php index 79197da2d0..e0fb08fa76 100644 --- a/actions/conversation.php +++ b/actions/conversation.php @@ -107,7 +107,7 @@ class ConversationAction extends Action function showContent() { - $notices = Notice::conversationStream($this->id); + $notices = Notice::conversationStream($this->id, 0, null); $ct = new ConversationTree($notices, $this); From 90557e9147a154e84a6d46ee1d63efceaf9ff12b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 1 Jul 2009 14:45:48 -0400 Subject: [PATCH 2/2] correctly return count of notices --- actions/conversation.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/actions/conversation.php b/actions/conversation.php index e0fb08fa76..cd6f263294 100644 --- a/actions/conversation.php +++ b/actions/conversation.php @@ -140,9 +140,7 @@ class ConversationTree extends NoticeList function show() { - $cnt = 0; - - $this->_buildTree(); + $cnt = $this->_buildTree(); $this->out->elementStart('div', array('id' =>'notices_primary')); $this->out->element('h2', null, _('Notices')); @@ -181,6 +179,8 @@ class ConversationTree extends NoticeList $this->tree[$notice->reply_to] = array($notice->id); } } + + return $cnt; } /**