Skip to content
Snippets Groups Projects
Commit 187e242a authored by Yves Chedemois's avatar Yves Chedemois
Browse files

followup fix for #736440 - clone is PHP5 only - drupal_clone() is your friend

parent 9043009d
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ function content_token_values($type, $object = NULL) { ...@@ -29,7 +29,7 @@ function content_token_values($type, $object = NULL) {
// Let PHP free the $node object when we are done. Working directly on the // Let PHP free the $node object when we are done. Working directly on the
// incoming $object causes memory leak issues on long-running scripts such // incoming $object causes memory leak issues on long-running scripts such
// as migrations. See http://drupal.org/node/736440. // as migrations. See http://drupal.org/node/736440.
$node = clone $object; $node = drupal_clone($object);
$type = content_types($node->type); $type = content_types($node->type);
$node->build_mode = 'token'; $node->build_mode = 'token';
$node->content = array(); $node->content = array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment