From a20fb1702acf5f53a6ee425471090fd9b21880b7 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Sat, 5 Dec 2009 15:29:24 +0000 Subject: [PATCH] brought back comments --- fp-includes/core/core.fpdb.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fp-includes/core/core.fpdb.class.php b/fp-includes/core/core.fpdb.class.php index 5b9fe14..6a6266b 100644 --- a/fp-includes/core/core.fpdb.class.php +++ b/fp-includes/core/core.fpdb.class.php @@ -376,6 +376,11 @@ $v = $idx->getitem($key); if ($qp->fullparse) { $entry = entry_parse($qp->id); + if ($entry && $qp->comments) { + $this->comments = new FPDB_CommentList($qp->id, comment_getlist($qp->id)); + $entry['comments'] = $this->comments->getCount(); + } + if (!$entry) return $return; } else { $entry = array('subject' => $v);