Commit 414c8f8b authored by Dries's avatar Dries

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

parent 4c686375
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment