| 1 |
<?php |
<?php |
| 2 |
// $Id: comment.module,v 1.805 2009/11/18 19:37:21 dries Exp $ |
// $Id: comment.module,v 1.806 2009/11/19 04:00:47 webchick Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 1561 |
$timestamp = ($timestamp > NODE_NEW_LIMIT ? $timestamp : NODE_NEW_LIMIT); |
$timestamp = ($timestamp > NODE_NEW_LIMIT ? $timestamp : NODE_NEW_LIMIT); |
| 1562 |
|
|
| 1563 |
// Use the timestamp to retrieve the number of new comments. |
// Use the timestamp to retrieve the number of new comments. |
| 1564 |
return db_query('SELECT COUNT(cid) FROM {comment} WHERE nid = :nid AND changed > :changed AND status = :status', array( |
return db_query('SELECT COUNT(cid) FROM {comment} WHERE nid = :nid AND changed > :timestamp AND status = :status', array( |
| 1565 |
':nid' => $nid, |
':nid' => $nid, |
| 1566 |
':changed' => $timestamp, |
':timestamp' => $timestamp, |
| 1567 |
':status' => COMMENT_PUBLISHED, |
':status' => COMMENT_PUBLISHED, |
| 1568 |
))->fetchField(); |
))->fetchField(); |
| 1569 |
} |
} |