Smarty loads trackback and pingback comments when displaying trackbacks. This is most compatible with existing templates.
This commit is contained in:
parent
71ba81dc43
commit
aafa8f9ca1
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user