- Fixed bug in update of taxonomy links.

4.2.x
Dries Buytaert 2003-01-06 21:43:07 +00:00
parent 2647a943f0
commit 56d0434f82
4 changed files with 4 additions and 5 deletions

View File

@ -42,7 +42,7 @@ class BaseTheme {
function node($node, $main) {
if (function_exists("taxonomy_node_get_terms")) {
foreach (taxonomy_node_get_terms($node->nid) as $term) {
$terms[] = l($term->name, NULL, NULL, "or=$term->tid");
$terms[] = l($term->name, NULL, array(), "or=$term->tid");
}
}

View File

@ -4,13 +4,12 @@
class Theme_example extends BaseTheme {
function system($field) {
$system["name"] = "Stone Age";
$system["name"] = "example";
$system["author"] = "Dries";
$system["description"] = "Internet explorer, Netscape, Opera, Lynx";
return $system[$field];
}
}
?>

View File

@ -121,7 +121,7 @@ function c(subject,mod,author,date,body) {document.writeln("<table border=\"0\"
if ($terms = taxonomy_node_get_terms($node->nid)) {
$taxlinks = array();
foreach ($terms as $term) {
$taxlinks[] = l($term->name, NULL, NULL, "or=$term->tid");
$taxlinks[] = l($term->name, NULL, array(), "or=$term->tid");
}
$subright = $this->links($taxlinks);
}

View File

@ -105,7 +105,7 @@
if ($terms = taxonomy_node_get_terms($node->nid)) {
$taxlinks = array();
foreach ($terms as $term) {
$taxlinks[] = l($term->name, NULL, NULL, "or=$term->tid");
$taxlinks[] = l($term->name, NULL, array(), "or=$term->tid");
}
$taxo = $this->links($taxlinks);
}