From: brockhaus Date: Tue, 14 Aug 2007 17:42:51 +0000 (+0000) Subject: Smarty loads trackback and pingback comments when displaying trackbacks. This is... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=82f5d7acd986661ac1132d4468e02f05dd8e8b1d;p=s9y.git Smarty loads trackback and pingback comments when displaying trackbacks. This is most compatible with existing templates. --- 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";