Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20018
Modified Files:
serendipity_functions.inc.php
Log Message:
When a comment is made to an entry, update its last_modified stamp to update
the item's comment counter inside the RSS feed. Otherwise, the conditional
GET
enabled RSS readers could not see that a new comment has been made to an
entry.
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.252
retrieving revision 1.253
diff -u -d -r1.252 -r1.253
--- serendipity_functions.inc.php 13 Apr 2004 12:33:40 -0000 1.252
+++ serendipity_functions.inc.php 15 Apr 2004 13:48:49 -0000 1.253
@@ -1247,7 +1247,8 @@
serendipity_db_query($query);
$field = ($type == 'NORMAL' ? 'comments' : 'trackbacks');
- $query = "UPDATE {$serendipity['dbPrefix']}entries SET $field=$field+1 WHERE id='$id'";
+ $lm = time();
+ $query = "UPDATE {$serendipity['dbPrefix']}entries SET $field=$field+1, last_modified=$lm WHERE id='$id'";
serendipity_db_query($query);
$query = "SELECT email, title, mail_comments
|