diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-11-05 03:35:29 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-11-05 03:35:29 +0000 |
commit | 414c8f8bad41b28409c445c6ede45b73eb3031b8 (patch) | |
tree | 4934cbfadf55db293acfa342eb80b62d61744019 /modules | |
parent | 4c686375584b35e6d6b558120c80437faeae7271 (diff) | |
download | brdo-414c8f8bad41b28409c445c6ede45b73eb3031b8.tar.gz brdo-414c8f8bad41b28409c445c6ede45b73eb3031b8.tar.bz2 |
- Patch #609118 by te-brian, David_Rothstein: Fixed node.tokens.inc: ->body issues.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/node/node.tokens.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node/node.tokens.inc b/modules/node/node.tokens.inc index 691d0b7f2..40709a2af 100644 --- a/modules/node/node.tokens.inc +++ b/modules/node/node.tokens.inc @@ -139,13 +139,13 @@ function node_tokens($type, $tokens, array $data = array(), array $options = arr case 'body': if (!empty($node->body)) { - $replacements[$original] = $sanitize ? $node->body[0]['safe'] : $node->body[0]['value']; + $replacements[$original] = $sanitize ? $node->body[FIELD_LANGUAGE_NONE][0]['safe'] : $node->body[FIELD_LANGUAGE_NONE][0]['value']; } break; case 'summary': if (!empty($node->body)) { - $replacements[$original] = $sanitize ? $node->body[0]['safe_summary'] : $node->body[0]['summary']; + $replacements[$original] = $sanitize ? $node->body[FIELD_LANGUAGE_NONE][0]['safe_summary'] : $node->body[FIELD_LANGUAGE_NONE][0]['summary']; } break; |