summaryrefslogtreecommitdiff
path: root/themes/garland/template.php
diff options
context:
space:
mode:
Diffstat (limited to 'themes/garland/template.php')
-rw-r--r--themes/garland/template.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/themes/garland/template.php b/themes/garland/template.php
index cf605f5b4..89fd4f13e 100644
--- a/themes/garland/template.php
+++ b/themes/garland/template.php
@@ -40,11 +40,8 @@ function phptemplate_breadcrumb($breadcrumb) {
/**
* Allow themable wrapping of all comments.
*/
-function phptemplate_comment_wrapper($content, $type = null) {
- static $node_type;
- if (isset($type)) $node_type = $type;
-
- if (!$content || $node_type == 'forum') {
+function phptemplate_comment_wrapper($content, $node) {
+ if (!$content || $node->type == 'forum') {
return '<div id="comments">'. $content .'</div>';
}
else {