diff options
Diffstat (limited to 'modules/system/system.api.php')
-rw-r--r-- | modules/system/system.api.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php index 2245f4c6b..644f16b2a 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -1407,12 +1407,12 @@ function hook_mail($key, &$message, $params) { '%username' => format_username($account), ); if ($context['hook'] == 'taxonomy') { - $object = $params['object']; - $vocabulary = taxonomy_vocabulary_load($object->vid); + $entity = $params['object']; + $vocabulary = taxonomy_vocabulary_load($entity->vid); $variables += array( - '%term_name' => $object->name, - '%term_description' => $object->description, - '%term_id' => $object->tid, + '%term_name' => $entity->name, + '%term_description' => $entity->description, + '%term_id' => $entity->tid, '%vocabulary_name' => $vocabulary->name, '%vocabulary_description' => $vocabulary->description, '%vocabulary_id' => $vocabulary->vid, |