/[drupal]/drupal/modules/comment/comment.module
ViewVC logotype

Diff of /drupal/modules/comment/comment.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.806 by webchick, Thu Nov 19 04:00:47 2009 UTC revision 1.807 by dries, Sat Nov 21 17:53:17 2009 UTC
# Line 1  Line 1 
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
# Line 1561  function comment_num_new($nid, $timestam Line 1561  function comment_num_new($nid, $timestam
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    }    }

Legend:
Removed from v.1.806  
changed lines
  Added in v.1.807

  ViewVC Help
Powered by ViewVC 1.1.3