summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-09-05 08:42:02 +0000
committerDries Buytaert <dries@buytaert.net>2007-09-05 08:42:02 +0000
commitab1715750a9aa2157cd117fa6b98399bb3bf6512 (patch)
treeb7287d0c047febac5de50db36868d06c5aee32d9 /modules/comment/comment.module
parentf655adcf9785376c760dea3ae681653e26ebf0fe (diff)
downloadbrdo-ab1715750a9aa2157cd117fa6b98399bb3bf6512.tar.gz
brdo-ab1715750a9aa2157cd117fa6b98399bb3bf6512.tar.bz2
- Patch #172961 by webernet: code style cleanup.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 59693b29d..e0acfcede 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -341,13 +341,13 @@ function comment_new_page_count($num_comments, $new_replies, $nid) {
// Newest first: find the last thread with new comment
$result = db_query('(SELECT thread FROM {comments} WHERE nid = %d AND status = 0 ORDER BY timestamp DESC LIMIT %d) ORDER BY thread DESC LIMIT 1', $nid, $new_replies);
$thread = db_result($result);
- $result_count = db_query("SELECT COUNT(*) FROM {comments} WHERE nid = %d AND status = 0 AND thread > '" . $thread . "'", $nid);
+ $result_count = db_query("SELECT COUNT(*) FROM {comments} WHERE nid = %d AND status = 0 AND thread > '". $thread ."'", $nid);
}
else {
// Oldest first: find the first thread with new comment
$result = db_query('(SELECT thread FROM {comments} WHERE nid = %d AND status = 0 ORDER BY timestamp DESC LIMIT %d) ORDER BY SUBSTRING(thread, 1, (LENGTH(thread) - 1)) LIMIT 1', $nid, $new_replies);
$thread = substr(db_result($result), 0, -1);
- $result_count = db_query("SELECT COUNT(*) FROM {comments} WHERE nid = %d AND status = 0 AND SUBSTRING(thread, 1, (LENGTH(thread) - 1)) < '" . $thread . "'", $nid);
+ $result_count = db_query("SELECT COUNT(*) FROM {comments} WHERE nid = %d AND status = 0 AND SUBSTRING(thread, 1, (LENGTH(thread) - 1)) < '". $thread ."'", $nid);
}
$count = db_result($result_count);
}
@@ -1490,7 +1490,7 @@ function comment_form(&$form_state, $edit, $title = NULL) {
$op = isset($_POST['op']) ? $_POST['op'] : '';
if (!$user->uid && variable_get('comment_anonymous', COMMENT_ANONYMOUS_MAYNOT_CONTACT) != COMMENT_ANONYMOUS_MAYNOT_CONTACT) {
- drupal_add_js(drupal_get_path('module', 'comment') . '/comment.js');
+ drupal_add_js(drupal_get_path('module', 'comment') .'/comment.js');
}
if ($user->uid) {