From 82f5d7acd986661ac1132d4468e02f05dd8e8b1d Mon Sep 17 00:00:00 2001 From: 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 dc7873b..e0d4152 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"; -- 2.39.5