From 7d0cf742f7761b9c2a2fe2f22d40f96dd08d95fd Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 20 Jul 2007 08:51:13 +0000 Subject: - Patch #160589 by dvessel: tpl-ify the comment module's theme functions. --- themes/garland/comment.tpl.php | 1 - themes/garland/node.tpl.php | 2 -- themes/garland/template.php | 7 ++----- 3 files changed, 2 insertions(+), 8 deletions(-) (limited to 'themes') diff --git a/themes/garland/comment.tpl.php b/themes/garland/comment.tpl.php index b6c1af73d..6364021a8 100644 --- a/themes/garland/comment.tpl.php +++ b/themes/garland/comment.tpl.php @@ -6,7 +6,6 @@ new) : ?> - diff --git a/themes/garland/node.tpl.php b/themes/garland/node.tpl.php index f0e24936c..8c267d671 100644 --- a/themes/garland/node.tpl.php +++ b/themes/garland/node.tpl.php @@ -1,5 +1,3 @@ -type); ?> -
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 '
'. $content .'
'; } else { -- cgit v1.2.3