1
0

* Added more parameters to {serendipity_printComments} function:

"block" (smarty block variable name),
      "template" (smarty template file to render)
      [1.4-beta2]
This commit is contained in:
Garvin Hicking
2008-12-12 10:58:56 +00:00
parent d9a5d6a8c8
commit 0a7a26b67d
2 changed files with 22 additions and 1 deletions

View File

@ -730,7 +730,23 @@ function &serendipity_smarty_printComments($params, &$smarty) {
);
}
$out = serendipity_printComments($comments, $params['mode']);
if (empty($params['depth'])) {
$params['depth'] = 0;
}
if (empty($params['trace'])) {
$params['trace'] = null;
}
if (empty($params['block'])) {
$params['block'] = 'COMMENTS';
}
if (empty($params['template'])) {
$params['template'] = 'comments.tpl';
}
$out = serendipity_printComments($comments, $params['mode'], $params['depth'], $params['trace'], $params['block'], $params['template']);
return $out;
}