From d8f78a7c9526f473ac26d4b51b09d235720c1858 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 26 May 2003 19:50:39 +0000 Subject: - Removed check_output() from the theme system layer. --- includes/theme.inc | 4 ++-- modules/comment.module | 1 + modules/comment/comment.module | 1 + modules/node.module | 3 +++ modules/node/node.module | 3 +++ themes/marvin/marvin.theme | 6 +++--- themes/unconed/unconed.theme | 6 +++--- themes/xtemplate/xtemplate.theme | 6 ++---- 8 files changed, 18 insertions(+), 12 deletions(-) diff --git a/includes/theme.inc b/includes/theme.inc index 31f7aabbc..2f1569b44 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -54,10 +54,10 @@ class BaseTheme { } if ($main && $node->teaser) { - $output .= check_output($node->teaser); + $output .= $node->teaser; } else { - $output .= check_output($node->body); + $output .= $node->body; } if ($links = link_node($node, $main)) { $output .= "
[ ". $this->links($links) ." ]"; diff --git a/modules/comment.module b/modules/comment.module index b4c333a4b..2016cdf99 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -359,6 +359,7 @@ function comment_view($comment, $links = "", $visible = 1) { print "cid\">\n"; if ($visible) { + $comment->comment = check_output($comment); theme("comment", $comment, $links); } else { diff --git a/modules/comment/comment.module b/modules/comment/comment.module index b4c333a4b..2016cdf99 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -359,6 +359,7 @@ function comment_view($comment, $links = "", $visible = 1) { print "cid\">\n"; if ($visible) { + $comment->comment = check_output($comment); theme("comment", $comment, $links); } else { diff --git a/modules/node.module b/modules/node.module index 2d013f395..3114ec2ca 100644 --- a/modules/node.module +++ b/modules/node.module @@ -355,6 +355,9 @@ function node_view($node, $main = 0) { ** Default behavior: */ + $node->teaser = filter($node->teaser); + $node->body = filter($node->body); + theme("node", $node, $main); } } diff --git a/modules/node/node.module b/modules/node/node.module index 2d013f395..3114ec2ca 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -355,6 +355,9 @@ function node_view($node, $main = 0) { ** Default behavior: */ + $node->teaser = filter($node->teaser); + $node->body = filter($node->body); + theme("node", $node, $main); } } diff --git a/themes/marvin/marvin.theme b/themes/marvin/marvin.theme index 6614ade7f..7f2e91fd0 100644 --- a/themes/marvin/marvin.theme +++ b/themes/marvin/marvin.theme @@ -98,10 +98,10 @@ print "  \n"; if ($main && $node->teaser) { - print "

". check_output($node->teaser) ."

\n"; + print "

$node->teaser

\n"; } else { - print "

". check_output($node->body) ."

\n"; + print "

$node->body

\n"; } print "  \n"; @@ -147,7 +147,7 @@ // Print body of comment: if ($comment->comment) { - print " ". check_output($comment->comment) ."\n"; + print " $comment->comment\n"; } // Print bottom link(s): diff --git a/themes/unconed/unconed.theme b/themes/unconed/unconed.theme index 41ad41dfc..f1dee7e58 100644 --- a/themes/unconed/unconed.theme +++ b/themes/unconed/unconed.theme @@ -115,10 +115,10 @@ teaser) { - echo "

". check_output($node->teaser) ."

"; + echo "

$node->teaser

"; } else { - echo "

". check_output($node->body) ."

"; + echo "

$node->body

"; } ?> @@ -167,7 +167,7 @@ echo " "; // Print body of comment: - if ($comment) echo " bgcolor2\">". check_output($comment->comment) .""; + if ($comment) echo " bgcolor2\">$comment->comment"; // Print bottom link(s): echo " bgcolor3\">[ $link ]"; diff --git a/themes/xtemplate/xtemplate.theme b/themes/xtemplate/xtemplate.theme index 60d51406f..4d23996fa 100644 --- a/themes/xtemplate/xtemplate.theme +++ b/themes/xtemplate/xtemplate.theme @@ -35,9 +35,7 @@ class Theme_xtemplate extends BaseTheme { "title" => ucfirst($node->title), "author" => format_name($node), "date" => format_date($node->created), - "content" => ($main && $node->teaser) ? - check_output($node->teaser) : - check_output($node->body))); + "content" => ($main && $node->teaser) ? $node->teaser : $node->body)); if ($taxonomy = taxonomy_link("taxonomy terms", $node)) { $this->template->assign("taxonomy", $this->links($taxonomy)); @@ -57,7 +55,7 @@ class Theme_xtemplate extends BaseTheme { "title" => ucfirst($comment->subject), "author" => format_name($comment), "date" => format_date($comment->timestamp), - "content" => check_output($comment->comment), + "content" => $comment->comment, "links" => $link)); if ($comment->new) { -- cgit v1.2.3