summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliot Pahl2012-04-04 22:33:21 (GMT)
committerElliot Pahl2012-04-20 00:56:09 (GMT)
commitb06b83cea6eac149499d7536648a2b93e7ccc26e (patch)
tree80b49b5fa014c9b5b19e192b7273d6fb76eaa97e
parentf1de5a23d96e24ad0190b0c1b2473af3be6cba94 (diff)
Reference node->language correctly.7.x-1.0-alpha3
-rw-r--r--expire.node_reference.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/expire.node_reference.inc b/expire.node_reference.inc
index 6393889..344e87f 100644
--- a/expire.node_reference.inc
+++ b/expire.node_reference.inc
@@ -18,7 +18,7 @@ function expire_get_node_references($node) {
if ($field_types[$field['field_name']]['type'] == 'node_reference') {
$node_field = isset($node->$field['field_name']) && !empty($node->$field['field_name']) ? $node->$field['field_name'] : array();
if (!empty($node_field)) {
- foreach($node_field[LANGUAGE_NONE] as $reference) {
+ foreach($node_field[$node->language] as $reference) {
$paths['reference' . $reference['nid']] = 'node/'. $reference['nid'];
}
}