From 9113a1ae280dd2387554be1bb3448b4e8da4b0e2 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 11 Sep 2003 21:57:39 +0000 Subject: [PATCH] - Fixed bug with taxonomy handling. Bug #2831. Port of patch by Jonathan Chaffer. --- themes/xtemplate/xtemplate.theme | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/themes/xtemplate/xtemplate.theme b/themes/xtemplate/xtemplate.theme index a898c32b2dd..f5d477537b6 100644 --- a/themes/xtemplate/xtemplate.theme +++ b/themes/xtemplate/xtemplate.theme @@ -44,10 +44,16 @@ class Theme_xtemplate extends BaseTheme { if (module_exist("taxonomy") && ($taxonomy = taxonomy_link("taxonomy terms", $node))) { $this->template->assign("taxonomy", $this->links($taxonomy)); } + else { + $this->template->assign("taxonomy", ""); + } if ($links = link_node($node, $main)) { $this->template->assign("links", $this->links($links)); } + else { + $this->template->assign("links", ""); + } $this->template->parse("node"); print $this->template->text("node");