diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-04-11 09:17:53 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-04-11 09:17:53 +0000 |
commit | 2a10f18211a2767c8a0f4e8f2d61af32b31a381b (patch) | |
tree | e489d832ee77921e767b3d30c70227b9ca60b33d | |
parent | 6a3b23460695e34a66f806239dd7bed56df98249 (diff) | |
download | brdo-2a10f18211a2767c8a0f4e8f2d61af32b31a381b.tar.gz brdo-2a10f18211a2767c8a0f4e8f2d61af32b31a381b.tar.bz2 |
- Fix bad code in taxonomy.module (variable naming)
-rw-r--r-- | modules/taxonomy/taxonomy.module | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 5cddca6ba..94ea2abce 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -1546,14 +1546,14 @@ function taxonomy_implode_tags($tags, $vid = NULL) { $typed_tags = array(); foreach ($tags as $tag) { // Extract terms belonging to the vocabulary in question. - if (is_null($vid) || $term->vid == $vid) { + if (is_null($vid) || $tag->vid == $vid) { - // Commas and quotes in terms are special cases, so encode 'em. - if (strpos($term->name, ',') !== FALSE || strpos($term->name, '"') !== FALSE) { - $term->name = '"'. str_replace('"', '""', $term->name) .'"'; + // Commas and quotes in tag names are special cases, so encode 'em. + if (strpos($tag->name, ',') !== FALSE || strpos($tag->name, '"') !== FALSE) { + $tag->name = '"'. str_replace('"', '""', $tag->name) .'"'; } - $typed_tags[] = $term->name; + $typed_tags[] = $tag->name; } } return implode(', ', $typed_tags); |