summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment')
-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 842a5fc10..9002ceb9b 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -183,12 +183,12 @@ function theme_comment_block() {
/**
* Implementation of hook_link().
*/
-function comment_link($type, $node = 0, $main = 0) {
+function comment_link($type, $node = NULL, $teaser = FALSE) {
$links = array();
if ($type == 'node' && $node->comment) {
- if ($main) {
+ if ($teaser) {
// Main page: display the number of comments that have been posted.
if (user_access('access comments')) {
@@ -252,7 +252,7 @@ function comment_link($type, $node = 0, $main = 0) {
}
if ($type == 'comment') {
- $links = comment_links($node, $main);
+ $links = comment_links($node, $teaser);
}
return $links;