#104156, backport, Unnecessary function call in comment link

4.7.x
Gerhard Killesreiter 2007-01-03 21:47:38 +00:00
parent 00f0745495
commit 435accd92e
1 changed files with 2 additions and 1 deletions

View File

@ -192,11 +192,12 @@ function comment_link($type, $node = 0, $main = 0) {
if (user_access('access comments')) {
$all = comment_num_all($node->nid);
$new = comment_num_new($node->nid);
if ($all) {
$links[] = l(format_plural($all, '1 comment', '%count comments'), "node/$node->nid", array('title' => t('Jump to the first comment of this posting.')), NULL, 'comment');
$new = comment_num_new($node->nid);
if ($new) {
$links[] = l(format_plural($new, '1 new comment', '%count new comments'), "node/$node->nid", array('title' => t('Jump to the first new comment of this posting.')), NULL, 'new');
}