* 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:
parent
90c7e1146f
commit
56c1496ad3
@ -3,6 +3,11 @@
|
|||||||
Version 1.4 ()
|
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,
|
* Fixed not remembering entryproperties when re-editing an entry,
|
||||||
introduced with 1.4-beta1 [1.4-beta2]
|
introduced with 1.4-beta1 [1.4-beta2]
|
||||||
|
|
||||||
|
@ -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;
|
return $out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user