Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv12321
Modified Files:
serendipity_functions.inc.php
Log Message:
More trackback fixing, should be working now (I hope)
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -d -r1.118 -r1.119
--- serendipity_functions.inc.php 8 Aug 2003 21:28:26 -0000 1.118
+++ serendipity_functions.inc.php 8 Aug 2003 22:02:47 -0000 1.119
@@ -635,7 +635,7 @@
{
global $serendipity;
- $query = "SELECT * FROM {$serendipity['dbPrefix']}comments WHERE entry_id=$id AND type LIKE 'TRACKBACK' AND title!='' ORDER BY id";
+ $query = "SELECT * FROM {$serendipity['dbPrefix']}comments WHERE entry_id=$id AND type = 'TRACKBACK' ORDER BY id";
if (isset($limit)) {
$query .= " LIMIT $limit";
}
@@ -1230,11 +1230,17 @@
{
global $serendipity;
- // We can't accept a trackback if we don't get any URl, basic rule...
+ // We can't accept a trackback if we don't get any URL
+ // This is a protocol rule.
if ( empty($url) ) {
return 0;
}
-
+
+ // If title is not provided, the value for url will be set as the title
+ // This is a protocol rule.
+ if ( empty($title) ) {
+ $title = $url;
+ }
$comment['title'] = $title;
$comment['url'] = $url;
$comment['name'] = $name;
|