Commit 3998bfad authored by Dries's avatar Dries

- Bugfix: the Xtemplate theme didn't check whether the taxonomy was enabled.
  Patch by Ax.
parent 94f5eee1
......@@ -37,7 +37,7 @@ function node($node, $main = 0) {
"date" => format_date($node->created),
"content" => ($main && $node->teaser) ? $node->teaser : $node->body));
if ($taxonomy = taxonomy_link("taxonomy terms", $node)) {
if (module_exist("taxonomy") && ($taxonomy = taxonomy_link("taxonomy terms", $node))) {
$this->template->assign("taxonomy", $this->links($taxonomy));
}
......
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