Commit 9113a1ae authored by Dries's avatar Dries

- Fixed bug with taxonomy handling.  Bug #2831.  Port of patch by Jonathan
  Chaffer.
parent b5f006c7
...@@ -44,10 +44,16 @@ function node($node, $main = 0) { ...@@ -44,10 +44,16 @@ function node($node, $main = 0) {
if (module_exist("taxonomy") && ($taxonomy = taxonomy_link("taxonomy terms", $node))) { if (module_exist("taxonomy") && ($taxonomy = taxonomy_link("taxonomy terms", $node))) {
$this->template->assign("taxonomy", $this->links($taxonomy)); $this->template->assign("taxonomy", $this->links($taxonomy));
} }
else {
$this->template->assign("taxonomy", "");
}
if ($links = link_node($node, $main)) { if ($links = link_node($node, $main)) {
$this->template->assign("links", $this->links($links)); $this->template->assign("links", $this->links($links));
} }
else {
$this->template->assign("links", "");
}
$this->template->parse("node"); $this->template->parse("node");
print $this->template->text("node"); print $this->template->text("node");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment