summaryrefslogtreecommitdiffstats
path: root/core/modules/taxonomy/taxonomy.tokens.inc
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/taxonomy/taxonomy.tokens.inc')
-rw-r--r--core/modules/taxonomy/taxonomy.tokens.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/modules/taxonomy/taxonomy.tokens.inc b/core/modules/taxonomy/taxonomy.tokens.inc
index aa1505c..5c9403b 100644
--- a/core/modules/taxonomy/taxonomy.tokens.inc
+++ b/core/modules/taxonomy/taxonomy.tokens.inc
@@ -128,7 +128,7 @@ function taxonomy_tokens($type, $tokens, array $data = array(), array $options =
case 'vocabulary':
$vocabulary = entity_load('taxonomy_vocabulary', $term->bundle());
- $replacements[$original] = String::checkPlain($vocabulary->name);
+ $replacements[$original] = String::checkPlain($vocabulary->label());
break;
case 'parent':
@@ -161,11 +161,11 @@ function taxonomy_tokens($type, $tokens, array $data = array(), array $options =
break;
case 'name':
- $replacements[$original] = $sanitize ? String::checkPlain($vocabulary->name) : $vocabulary->name;
+ $replacements[$original] = $sanitize ? String::checkPlain($vocabulary->label()) : $vocabulary->label();
break;
case 'description':
- $replacements[$original] = $sanitize ? Xss::filter($vocabulary->description) : $vocabulary->description;
+ $replacements[$original] = $sanitize ? Xss::filter($vocabulary->getDescription()) : $vocabulary->getDescription();
break;
case 'term-count':