summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-12-06 15:44:09 +0000
committerDries Buytaert <dries@buytaert.net>2006-12-06 15:44:09 +0000
commit627d42673539bf4a7e4f828f9dc7514c53c01e6a (patch)
tree9584c54dd8fcfa1fbb9d7cd27136a4156b433bc6
parenta94f95d37f1c76812e003852156ed52f97976d2b (diff)
downloadbrdo-627d42673539bf4a7e4f828f9dc7514c53c01e6a.tar.gz
brdo-627d42673539bf4a7e4f828f9dc7514c53c01e6a.tar.bz2
- Patch #100836 by webernet: make collapsed comments work again.
-rw-r--r--modules/comment/comment.module10
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 43ee9db86..0607f2931 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -139,9 +139,13 @@ function comment_menu($may_cache) {
}
}
if ((arg(0) == 'node') && is_numeric(arg(1)) && is_numeric(arg(2))) {
- $items[] = array('path' => ('node/'. arg(1) .'/'. arg(2)), 'title' => t('View'),
- 'callback' => 'node_page',
- 'type' => MENU_CALLBACK);
+ $items[] = array(
+ 'path' => ('node/'. arg(1) .'/'. arg(2)),
+ 'title' => t('View'),
+ 'callback' => 'node_page_view',
+ 'callback arguments' => array(node_load(arg(1)), arg(2)),
+ 'type' => MENU_CALLBACK,
+ );
}
}