Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
1ec2b45b
Commit
1ec2b45b
authored
Jan 03, 2007
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#104156
by chromeyellow and Heine: avoid redundant SQL queries.
parent
3c6d61e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modules/comment/comment.module
modules/comment/comment.module
+2
-1
No files found.
modules/comment/comment.module
View file @
1ec2b45b
...
...
@@ -298,7 +298,6 @@ function comment_link($type, $node = NULL, $teaser = FALSE) {
if
(
user_access
(
'access comments'
))
{
$all
=
comment_num_all
(
$node
->
nid
);
$new
=
comment_num_new
(
$node
->
nid
);
if
(
$all
)
{
$links
[
'comment_comments'
]
=
array
(
...
...
@@ -308,6 +307,8 @@ function comment_link($type, $node = NULL, $teaser = FALSE) {
'fragment'
=>
'comments'
);
$new
=
comment_num_new
(
$node
->
nid
);
if
(
$new
)
{
$links
[
'comment_new_comments'
]
=
array
(
'title'
=>
format_plural
(
$new
,
'1 new comment'
,
'@count new comments'
),
...
...
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