From aafa8f9ca11b53a2a82ca8e1ae1ebcd10da947a3 Mon Sep 17 00:00:00 2001 From: Grischa Brockhaus Date: Tue, 14 Aug 2007 17:42:51 +0000 Subject: [PATCH] Smarty loads trackback and pingback comments when displaying trackbacks. This is most compatible with existing templates. --- include/functions_smarty.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions_smarty.inc.php b/include/functions_smarty.inc.php index dc7873b2..e0d41529 100644 --- a/include/functions_smarty.inc.php +++ b/include/functions_smarty.inc.php @@ -27,7 +27,7 @@ function &serendipity_fetchTrackbacks($id, $limit = null, $showAll = false) { $and = "AND status = 'approved'"; } - $query = "SELECT * FROM {$serendipity['dbPrefix']}comments WHERE entry_id = '". (int)$id ."' AND type = 'TRACKBACK' $and ORDER BY id"; + $query = "SELECT * FROM {$serendipity['dbPrefix']}comments WHERE entry_id = '". (int)$id ."' AND (type = 'TRACKBACK' OR type = 'PINGBACK') $and ORDER BY id"; if (isset($limit)) { $limit = serendipity_db_limit_sql($limit); $query .= " $limit";