Version 1.1-alpha7()
------------------------------------------------------------------------
+ * Made smarty function "serendipity_printComments" accept to new
+ parameters: "order" (ASC/DESC) and "limit" (garvinhicking)
+
* Comment moderation panel, usability improvement: Blocking authors/
URLs will lead to the originating page. Thanks to Tanel Raja!
(garvinhicking)
$params['mode'] = VIEWMODE_THREADED;
}
- $comments = serendipity_fetchComments($params['entry']);
+ if (isset($params['order']) && $params['order'] != 'DESC') {
+ $params['order'] = 'ASC';
+ }
+
+ $comments = serendipity_fetchComments($params['entry'], (int)$params['limit'], $params['order']);
if (!empty($serendipity['POST']['preview'])) {
$comments[] =