- Patch #609118 by te-brian, David_Rothstein: Fixed node.tokens.inc: ->body issues.

merge-requests/26/head
Dries Buytaert 2009-11-05 03:35:29 +00:00
parent 4c68637558
commit 414c8f8bad
1 changed files with 2 additions and 2 deletions

View File

@ -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;