From 4775aebee0e3afa99e86af92c3099cd5008e4809 Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Fri, 12 Dec 2008 15:50:58 +0000 Subject: [PATCH] add the same capability to trackbacks --- include/functions_smarty.inc.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/include/functions_smarty.inc.php b/include/functions_smarty.inc.php index 644b3c45..857f44af 100644 --- a/include/functions_smarty.inc.php +++ b/include/functions_smarty.inc.php @@ -767,7 +767,23 @@ function &serendipity_smarty_printTrackbacks($params, &$smarty) { $trackbacks =& serendipity_fetchTrackbacks($params['entry']); - $out = serendipity_printComments($trackbacks, VIEWMODE_LINEAR, 0, null, 'TRACKBACKS', 'trackbacks.tpl'); + if (empty($params['depth'])) { + $params['depth'] = 0; + } + + if (empty($params['trace'])) { + $params['trace'] = null; + } + + if (empty($params['block'])) { + $params['block'] = 'TRACKBACKS'; + } + + if (empty($params['template'])) { + $params['template'] = 'trackbacks.tpl'; + } + + $out = serendipity_printComments($trackbacks, VIEWMODE_LINEAR, $params['depth'], $params['trace'], $params['block'], $params['template']); return $out; }