* 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 90c7e1146f
commit 56c1496ad3
2 changed files with 22 additions and 1 deletions

View File

@ -3,6 +3,11 @@
Version 1.4 ()
------------------------------------------------------------------------
* Added more parameters to {serendipity_printComments} function:
"block" (smarty block variable name),
"template" (smarty template file to render)
[1.4-beta2]
* Fixed not remembering entryproperties when re-editing an entry,
introduced with 1.4-beta1 [1.4-beta2]

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;
}