Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
8164ec2f
Commit
8164ec2f
authored
Oct 20, 2005
by
Steven Wittens
Browse files
- Code style
parent
468b9e8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/comment.module
View file @
8164ec2f
...
...
@@ -248,8 +248,8 @@ function comment_nodeapi(&$node, $op, $arg = 0) {
$comments
=
db_result
(
db_query
(
'SELECT comment_count FROM {node_comment_statistics} WHERE nid = %d'
,
$node
->
nid
));
return
format_plural
(
$comments
,
'1 comment'
,
'%count comments'
);
case
'rss item'
:
return
array
(
array
(
'key'
=>
'comments'
,
'value'
=>
url
(
'node/'
.
$node
->
nid
,
NULL
,
'comment'
,
TRUE
)));
case
'rss
s
item'
:
return
array
(
array
(
'key'
=>
'comments'
,
'value'
=>
url
(
'node/'
.
$node
->
nid
,
NULL
,
'comment'
,
TRUE
)));
}
}
...
...
modules/comment/comment.module
View file @
8164ec2f
...
...
@@ -248,8 +248,8 @@ function comment_nodeapi(&$node, $op, $arg = 0) {
$comments
=
db_result
(
db_query
(
'SELECT comment_count FROM {node_comment_statistics} WHERE nid = %d'
,
$node
->
nid
));
return
format_plural
(
$comments
,
'1 comment'
,
'%count comments'
);
case
'rss item'
:
return
array
(
array
(
'key'
=>
'comments'
,
'value'
=>
url
(
'node/'
.
$node
->
nid
,
NULL
,
'comment'
,
TRUE
)));
case
'rss
s
item'
:
return
array
(
array
(
'key'
=>
'comments'
,
'value'
=>
url
(
'node/'
.
$node
->
nid
,
NULL
,
'comment'
,
TRUE
)));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment