diff options
author | Dries Buytaert <dries@buytaert.net> | 2011-09-16 14:58:36 -0400 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2011-09-16 14:58:36 -0400 |
commit | 2b2de077e30ba734ea2f86e8d834cd957768159a (patch) | |
tree | 7297c89943a23c4a029e04e2baacbe2e688db757 /modules/comment/comment.module | |
parent | 7805beba586dd7d59b83b3dfc9d84b12f4a47e18 (diff) | |
download | brdo-2b2de077e30ba734ea2f86e8d834cd957768159a.tar.gz brdo-2b2de077e30ba734ea2f86e8d834cd957768159a.tar.bz2 |
- Patch #1281436 by dixon_: double spaces in comment.module.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index c17c5a6be..59c9ad7c7 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -92,7 +92,7 @@ function comment_help($path, $arg) { * Implements hook_entity_info(). */ function comment_entity_info() { - $return = array( + $return = array( 'comment' => array( 'label' => t('Comment'), 'base table' => 'comment', @@ -542,7 +542,7 @@ function comment_new_page_count($num_comments, $new_replies, $node) { elseif ($flat) { // Flat comments. $count = $num_comments - $new_replies; - $pageno = $count / $comments_per_page; + $pageno = $count / $comments_per_page; } else { // Threaded comments: we build a query with a subquery to find the first @@ -575,7 +575,7 @@ function comment_new_page_count($num_comments, $new_replies, $node) { ':thread' => $first_thread, ))->fetchField(); - $pageno = $count / $comments_per_page; + $pageno = $count / $comments_per_page; } if ($pageno >= 1) { @@ -1439,7 +1439,7 @@ function comment_save($comment) { $transaction = db_transaction(); try { - $defaults = array( + $defaults = array( 'mail' => '', 'homepage' => '', 'name' => '', @@ -1711,7 +1711,7 @@ function comment_num_new($nid, $timestamp = 0) { $timestamp = ($timestamp > NODE_NEW_LIMIT ? $timestamp : NODE_NEW_LIMIT); // Use the timestamp to retrieve the number of new comments. - return db_query('SELECT COUNT(cid) FROM {comment} WHERE nid = :nid AND created > :timestamp AND status = :status', array( + return db_query('SELECT COUNT(cid) FROM {comment} WHERE nid = :nid AND created > :timestamp AND status = :status', array( ':nid' => $nid, ':timestamp' => $timestamp, ':status' => COMMENT_PUBLISHED, @@ -2279,10 +2279,10 @@ function template_preprocess_comment(&$variables) { // Set status to a string representation of comment->status. if (isset($comment->in_preview)) { - $variables['status'] = 'comment-preview'; + $variables['status'] = 'comment-preview'; } else { - $variables['status'] = ($comment->status == COMMENT_NOT_PUBLISHED) ? 'comment-unpublished' : 'comment-published'; + $variables['status'] = ($comment->status == COMMENT_NOT_PUBLISHED) ? 'comment-unpublished' : 'comment-published'; } // Gather comment classes. if ($comment->uid === 0) { |